We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set the docking control's caption font style and forground settings?

 

Caption FontStyle and foreground settings, for an active docked control, can be controlled by ActiveCaptionFont and ActiveCaptionForeground properties. By setting the InactiveCaptionFont and InactiveCaptionForeGround properties, the caption foreground appearance of the inactive controls among the docked controls can be customized. These settings will effect only with DockingManager.VisualStyle property set as Default.

C#

private void dockingManager1_NewDockStateEndLoad(object sender, EventArgs e)

{

// Setting caption for active docking control

this.dockingManager1.ActiveCaptionFont = new System.Drawing.Font("Comic Sans MS", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));

this.dockingManager1.ActiveCaptionForeGround = System.Drawing.Color.Red;

//Setting Caption for inactive docking control

this.dockingManager1.InActiveCaptionFont = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));

this.dockingManager1.InActiveCaptionForeGround = System.Drawing.Color.Blue;

}

VB

Private Sub dockingManager1_NewDockStateEndLoad(ByVal sender As Object, ByVal e As EventArgs) Handles dockingManager1.NewDockStateEndLoad

'' Setting caption for active docking control

Me.dockingManager1.ActiveCaptionFont = New System.Drawing.Font("Comic Sans MS", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (CByte(0)))

Me.dockingManager1.ActiveCaptionForeGround = System.Drawing.Color.Red

''Setting Caption for inactive docking control

Me.dockingManager1.InActiveCaptionFont = New System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (CByte(0)))

Me.dockingManager1.InActiveCaptionForeGround = System.Drawing.Color.Blue

End Sub

Sample:

http://websamples.syncfusion.com/samples/KB/Tools.Windows/KB_ActiveInactiveFont/main.htm

Article ID: Published Date: Last Revised Date: Platform: Control:
1810 04/30/2011 07/10/2014 WinForms DockingManager
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon