Tech Off Thread

1 post

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Incrementing Font sizes

Back to Forum: Tech Off
  • User profile image

    So it seems that System.Drawing.Font is immutable. What is a nice way to increment the font size of a given control?

    You can initialise a new Font object from an existing one and specify a different FontStyle for the new object, but that's all. And there are no methods that return a new font object with one of the properties updated to a new value. (eg. myFont.NewSize(10) returns a handy copy of myFont with the size changed to 10)

    What am I missing? There must be some alternative to manually specifying all the properties...

    Thanks in advance,

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.