Font can't be, but you can certainly create your own control based on inheriting another control. Here is a small example. We inherit from a basic label to create a new control called "newlabel". It will act exactly like a label but it will have its own font and colors etc. In our example we make a label that is 14 em sized Arial font that is Aqua in color.
csharp
// Our new label control inherits from Label.
public class newlabel : Label {
// Our constructor to set this control upon creation
public newlabel()
{
this.Font = new Font("Arial", 14);
this.ForeColor = Color.Aqua;
}
}
Then all we need to do is create the control when we startup a form or hit a button or whatever.
csharp
private void Form1_Load(object sender, EventArgs e)
{
// Create a new label control, set it to be in the top left corner of the form
// at position 10, 10 with our new label text and lastly add it to the form.
// We will then have a control that is there and ready to go.
newlabel test = new newlabel();
test.Left = 10;
test.Top = 10;
test.Text = "My new label";
this.Controls.Add(test);
}
Now of course this isn't a control in your toolbox but you can certainly make one of those inherited from label or another control and add your own functionality. It is up to you. This is just a taste that it is possible to enforce your own styling on a control.
Hope this shows you the possibilities. Enjoy!
"At DIC we be control inheriting code ninjas... and no we don't inherit male pattern baldness"