menu

WinForms

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

    Show / Hide Table of Contents

    Class CaptionLabel

    Advanced caption label for Metro form

    Inheritance
    System.Object
    CaptionLabel
    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
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public class CaptionLabel

    Constructors

    CaptionLabel()

    constructor for CaptionLabel

    Declaration
    public CaptionLabel()

    CaptionLabel(Color)

    constructor for CaptionLabel

    Declaration
    public CaptionLabel(Color color)
    Parameters
    Type Name Description
    System.Drawing.Color color

    Properties

    BackColor

    Gets/Sets the value for label backcolor

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

    Font

    Gets/Sets the value for label font.

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

    ForeColor

    Gets or Sets the Forecolor of the CaptionLabel.

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

    Location

    Gets/Sets the value for label location

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

    Name

    Gets or Sets the instance label name

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

    Size

    Gets/Sets the value for label size

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

    Text

    Gets/Sets the value for Label text

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

    Methods

    SetOwner(Form)

    Specifies the owner of the label

    Declaration
    public void SetOwner(Form value)
    Parameters
    Type Name Description
    System.Windows.Forms.Form value

    Events

    LabelMouseDown

    Mouse down event for CaptionLabel

    Declaration
    public event CaptionLabel.MouseDown LabelMouseDown
    Event Type
    Type
    CaptionLabel.MouseDown

    LabelMouseEnter

    Mouse enter event for CaptionLabel

    Declaration
    public event CaptionLabel.MouseEnter LabelMouseEnter
    Event Type
    Type
    CaptionLabel.MouseEnter

    LabelMouseLeave

    Mouse leave event for CaptionLabel

    Declaration
    public event CaptionLabel.MouseLeave LabelMouseLeave
    Event Type
    Type
    CaptionLabel.MouseLeave

    LabelMouseMove

    Mouse move event for CaptionLabel

    Declaration
    public event CaptionLabel.MouseMove LabelMouseMove
    Event Type
    Type
    CaptionLabel.MouseMove

    LabelMouseUp

    Mouse up event for CaptionLabel

    Declaration
    public event CaptionLabel.MouseUp LabelMouseUp
    Event Type
    Type
    CaptionLabel.MouseUp
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved