menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Caption - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Caption

    Caption bar of the docking windows.

    Inheritance
    System.Object
    Caption
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Forms.Tools.Renderers
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class Caption

    Constructors

    Caption()

    Creates the instance of the Caption bar.

    Declaration
    public Caption()

    Caption(CaptionState)

    Overloaded Constructor.Creates with the CaptionState.

    Declaration
    public Caption(CaptionState state)
    Parameters
    Type Name Description
    CaptionState state

    Caption(CaptionState, String, DockLabelAlignmentStyle, Font)

    Overloaded Constructor. Creates with Caption state, docking label, Docking label alignment and with the customized font.

    Declaration
    public Caption(CaptionState state, string text, DockLabelAlignmentStyle alignment, Font font)
    Parameters
    Type Name Description
    CaptionState state
    System.String text
    DockLabelAlignmentStyle alignment
    System.Drawing.Font font

    Caption(Boolean)

    Overloaded Constructor. Creates with Enabled state.

    Declaration
    public Caption(bool enabled)
    Parameters
    Type Name Description
    System.Boolean enabled

    Caption(String)

    Overloaded Constructor. Creates with the Label text.

    Declaration
    public Caption(string text)
    Parameters
    Type Name Description
    System.String text

    Properties

    CaptionState

    Gets/sets the Caption state of the docking windows.

    Declaration
    public CaptionState CaptionState { get; set; }
    Property Value
    Type
    CaptionState

    Enabled

    Returns the enabled state of the docking windows.

    Declaration
    public bool Enabled { get; }
    Property Value
    Type
    System.Boolean

    Font

    Gets/sets the font for the docking windows caption.

    Declaration
    public Font Font { get; set; }
    Property Value
    Type
    System.Drawing.Font

    Text

    Gets/sets the Docking Label of the docking windows.

    Declaration
    public string Text { get; set; }
    Property Value
    Type
    System.String

    TextAlignment

    Gets/sets the Dock label alignment style of the docking windows.

    Declaration
    public DockLabelAlignmentStyle TextAlignment { get; set; }
    Property Value
    Type
    DockLabelAlignmentStyle
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved