Skip to content
ProGraMajster edited this page Mar 28, 2026 · 1 revision

Label

← Back to Control Inventory

Summary

Represents a Label control.

Example

var label = new Label
{
    Text = "Hello ModernFormsNext"
};

Documented Properties

Name Summary
AutoEllipsis Gets or sets a value indicating if text will be truncated with an ellipsis if it cannot fully fit in the Label.
DefaultMargin No XML summary yet.
DefaultSize No XML summary yet.
Image Gets or sets the image that is displayed on a .
ImageAlign Gets or sets the alignment of the image on the .
ImageIndex Gets or sets the index of the image in the to display on the .
ImageKey Gets or sets the key of the image in the to display on the .
ImageList Gets or sets the that contains the image to display on the .
Multiline Gets or sets a value indicating if text should wrap.
Style No XML summary yet.
TextAlign Gets or sets a value indicating how text will be aligned within the Label.
TextImageRelation Gets or sets a value indicating how the Label's Image and Text are layed out relative to each other.
UseMnemonic Gets or sets a value indicating whether an ampersand (&) included in the text of the control.

Documented Methods

Name Summary
#ctor Initializes a new instance of the Label class.
Dispose No XML summary yet.
OnPaint No XML summary yet.
OnTextAlignChanged Called when the TextAlign property is changed.

Documented Events

Name Summary
TextAlignChanged Raised when the TextAlign property is changed.

Notes

  • This page was generated from the public XML documentation of ModernFormsNext.
  • Base members inherited from Control, ScrollableControl, WindowBase, or other parent types may not all be repeated here.

ModernFormsNext

Clone this wiki locally