How can i create Font property for a composite control similar to the default one?
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hello, I think you have to pick one of these possibilities.
public override Font Font { get { return base.Font; } set { base.Font = value; } } private Font \_font; public new Font Font { get { return \_font; } set { \_font = value; } } public new Font Font { get { return base.Font; } set { base.Font = value; } } private Font \_myfont; public Font MyFont { get { return myfont; } set { myfont = value; } }
Hope you found youre solution! All the best, Martin