Label Class
Displays a text string within a container in a form. The text will wrap within the specified width and height of the control. Clipping will occur if the text wraps outside the specified width and height boundaries.
Namespace: elsystem.windows.forms
Properties
Additional
properties, methods, and events are described in the classes listed
under Inheritance Hierarchy (see below).
| Name | Type | Description | |
|
|
AutoEllipsis | bool | True enables the automatic use of ellipsis (...) for text that extends beyond the width of the Label control. |
|
|
FlatStyle | enum | Gets or sets the flat style appearance of the Label. See FlatStyle for a list of possible values. |
|
|
TextAlign | enum | Gets or sets the alignment of text in the label. See ContentAlignment for a list of possible values. |
|
|
UseCompatibleTextRendering | bool | True indicates that text rendering should be compatible with previous release of Windows Forms. |
Methods
| Name | Description | |
|
|
Create () | Initializes a new instance of the Label class. |
|
|
Create (text,width,height) | Initializes a new instance of the Label class. Parameters include the Text to be displayed followed the Width and Height of the control. |
|
|
RemoveGradient() | Removes the gradient background. |
|
|
SetLinearGradient(mode, startColor, endColor) | Creates a linear gradient label background. See LinearGradientMode and Color for lists of possible values. |
|
|
SetRadialGradient(startColor, endColor) | Creates a radial gradient label background. See Color for a list of possible values. |