HypernovaDesktop Components · docs
Binarymission
WinFormsExtended Label › ExtendedLabel

ExtendedLabel

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WinForms.Controls.Containers

Implements an Extended Label control.

public class ExtendedLabel : Control

Inherits from / implements: Control

Members at a glance

ExtendedLabelInitializes a new instance of the ExtendedLabel class.
BackgroundGradientFloatAngleGets or sets the background gradient mode float angle.
BorderColorGets or sets the color of the border.
BorderDashStyleGets or sets the border dash style.
BorderDrawingStyleGets or sets the border drawing style.
CreateParamsGets the parameters used to create this control's window, with the window styles this control needs added to them.
DropShadowGradientFloatAngleGets or sets the drop-shadow gradient mode float angle.
DropShadowMarginGets or sets the drop shadow margin.
EndLinearGradientBackgroundColorGets or sets the end color of the end linear gradient background.
EndLinearGradientDropShadowBackgroundColorGets or sets the end color of the linear gradient drop shadow background.
IsBackgroundTransparentGets or sets a value indicating whether this instance is background transparent.
OrientationGets or sets the orientation.
ShouldDrawBorderGets or sets a value indicating whether the control should draw border.
ShouldDrawDropShadowGets or sets a value indicating whether the control should draw drop shadow.
ShouldRefreshUponParentMoveResizeGets or sets a value indicating whether the control should update itself upon parent control's move or resize.
StartLinearGradientBackgroundColorGets or sets the start color of the linear gradient background.
StartLinearGradientDropShadowBackgroundColorGets or sets the start color of the linear gradient drop shadow background.
StringFormatGets or sets the string format.
TextGets or sets the label text.
TextAlignmentGets or sets the alignment for the text in the control.
VerticalTextDirectionGets or sets the vertical text direction.
OnFontChangedRaises the FontChanged event. ExtendedLabel overrides it so the control's own handling runs alongside the base behavior.
OnHandleCreatedRaises the HandleCreated event. ExtendedLabel overrides it so the control's own handling runs alongside the base behavior.
OnPaintRaises the Paint event. ExtendedLabel overrides it so the control's own handling runs alongside the base behavior.
OnPaintBackgroundRaises the PaintBackground event. ExtendedLabel overrides it so the control's own handling runs alongside the base behavior.
OnParentFontChangedRaises the ParentFontChanged event. ExtendedLabel overrides it so the control's own handling runs alongside the base behavior.
OnResizeRaises the Resize event. ExtendedLabel overrides it so the control's own handling runs alongside the base behavior.
WndProcProcesses the Windows messages sent to this control's window.

Constructors

ExtendedLabel

public ExtendedLabel()

Initializes a new instance of the ExtendedLabel class.

Properties

BackgroundGradientFloatAngle

public float BackgroundGradientFloatAngle

Gets or sets the background gradient mode float angle.

BorderColor

public Color BorderColor

Gets or sets the color of the border.

BorderDashStyle

public DashStyle BorderDashStyle

Gets or sets the border dash style.

BorderDrawingStyle

public BorderStyle BorderDrawingStyle

Gets or sets the border drawing style.

Value. The border drawing style.

CreateParams

protected override CreateParams CreateParams

Gets the parameters used to create this control's window, with the window styles this control needs added to them.

DropShadowGradientFloatAngle

public float DropShadowGradientFloatAngle

Gets or sets the drop-shadow gradient mode float angle.

DropShadowMargin

public int DropShadowMargin

Gets or sets the drop shadow margin.

EndLinearGradientBackgroundColor

public Color EndLinearGradientBackgroundColor

Gets or sets the end color of the end linear gradient background.

EndLinearGradientDropShadowBackgroundColor

public Color EndLinearGradientDropShadowBackgroundColor

Gets or sets the end color of the linear gradient drop shadow background.

IsBackgroundTransparent

public bool IsBackgroundTransparent

Gets or sets a value indicating whether this instance is background transparent.

Orientation

public DrawingOrientation Orientation

Gets or sets the orientation.

Value. The orientation.

ShouldDrawBorder

public bool ShouldDrawBorder

Gets or sets a value indicating whether the control should draw border.

ShouldDrawDropShadow

public bool ShouldDrawDropShadow

Gets or sets a value indicating whether the control should draw drop shadow.

ShouldRefreshUponParentMoveResize

public bool ShouldRefreshUponParentMoveResize

Gets or sets a value indicating whether the control should update itself upon parent control's move or resize.

StartLinearGradientBackgroundColor

public Color StartLinearGradientBackgroundColor

Gets or sets the start color of the linear gradient background.

StartLinearGradientDropShadowBackgroundColor

public Color StartLinearGradientDropShadowBackgroundColor

Gets or sets the start color of the linear gradient drop shadow background.

StringFormat

public StringFormat StringFormat

Gets or sets the string format.

Value. The string format.

Text

public new string Text

Gets or sets the label text.

TextAlignment

public ContentAlignment TextAlignment

Gets or sets the alignment for the text in the control.

Value. The alignment.

VerticalTextDirection

public TextDirection VerticalTextDirection

Gets or sets the vertical text direction.

Value. The vertical text direction.

Methods

OnFontChanged

protected override void OnFontChanged(EventArgs e)

Raises the FontChanged event. ExtendedLabel overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnHandleCreated

protected override void OnHandleCreated(EventArgs e)

Raises the HandleCreated event. ExtendedLabel overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnPaint

protected override void OnPaint(PaintEventArgs e)

Raises the Paint event. ExtendedLabel overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnPaintBackground

protected override void OnPaintBackground(PaintEventArgs pevent)

Raises the PaintBackground event. ExtendedLabel overrides it so the control's own handling runs alongside the base behavior.

pevent
The data for the event.

OnParentFontChanged

protected override void OnParentFontChanged(EventArgs e)

Raises the ParentFontChanged event. ExtendedLabel overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnResize

protected override void OnResize(EventArgs e)

Raises the Resize event. ExtendedLabel overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

WndProc

protected override void WndProc(ref Message m)

Processes the Windows messages sent to this control's window.