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