Articles in this section
Category / Section

How to get the caption color and font name of WinForms Office2007Form?

1 min read

Setting caption color and font

We can get the Office2007Form''s Caption Color and Font Name using Office2007Form''s CaptionFont and FormTextColor properties.

C#

Font formCaptionFont = ((Office2007Form)this).CaptionFont;
Color formCaptionColor = Office2007Colors.GetColorTable(((Office2007Form)this).ColorScheme).FormTextColor;

VB

Dim formCaptionFont As Font = (CType(Me, Office2007Form)).CaptionFont
Dim formCaptionColor As Color = Office2007Colors.GetColorTable((CType(Me, Office2007Form)).ColorScheme).FormTextColor

Reference link: https://help.syncfusion.com/windowsforms/office2007form/customization

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied