[]
Represents a Windows label control.
[ToolboxBitmap(typeof(C1Label), "C1Label.png")]
public class C1Label : C1InputControl, ISupportInitialize
| Name | Description |
|---|---|
| C1Label() | Initializes a new instance of the C1Label class. |
| Name | Description |
|---|---|
| AutoSize | Gets or sets a value that indicates whether the control resizes based on its contents. |
| BackColor | |
| CultureInfo | Gets or sets the current CultureInfo object. |
| CustomFormat | Gets or sets custom format specified used if FormatType property is CustomFormat. |
| DataMember | The field of the data source object to which the control is bound. |
| DataSource | Gets or sets the data source object to which the control is bound. |
| DataType | Gets or sets the type of the Value property. |
| DefaultIconSize | Gets or sets the default icon size of control. |
| DefaultSize | |
| EmptyAsNull | Gets or sets a value indicating whether empty strings are interpreted as null values (DBNull). |
| ErrorProvider | Gets or sets an ErrorProvider object used to indicate error state of the control. |
| ForeColor | |
| FormatInfo | Gets the format used to display the Value property. |
| FormatType | Gets or sets enumeration value determining the formatting method, including standard .NET format specifies, custom and programmatic formatting. |
| Icon | Gets or sets the C1.Framework.C1Icon that is displayed on a label control. |
| Image | Gets or sets the image that is displayed on a label control. |
| ImageAlign | Gets or sets the alignment of the image on the label control. |
| ImageIndex | Gets or sets the image list index value of the image displayed on the label control. |
| ImageKey | Gets or sets the key accessor for the image in the ImageList. |
| ImageList | Gets or sets the ImageList that contains the Image displayed on a label control. |
| NullText | Gets or sets string representing a DBNull value. |
| PreferredHeight | Gets the height of the control (in pixels), assuming a single line of text is displayed. |
| PreferredWidth | Gets the width of the control (in pixels), assuming a single line of text is displayed. |
| Styles | Gets or sets the C1Label styles. |
| Text | Gets or sets the text associated with this control. |
| TextAlign | Gets or sets the alignment of the text on the label control. |
| TextImageRelation | Gets or sets the position of text and image relative to each other. |
| TrimEnd | Gets or sets a value indicating whether trailing spaces are removed. |
| TrimStart | Gets or sets a value indicating whether leading spaces are removed. |
| Trimming | Gets or sets how to trim characters that do not fit in the space available. |
| UseMnemonic | Gets or sets a value indicating whether the first character that is preceded by an ampersand (&) is used as the mnemonic key of the control. |
| Value | Gets or sets the current DataType representation of the visual information contained in the control. |
| ValueIsDbNull | Gets a value indicating whether the Value is DBNull. |
| Name | Description |
|---|---|
| ApplyStyle() | Applies the style to control view. |
| CreateUiaItem(UiaItem) | |
| Dispose(bool) | Releases the unmanaged resources used by the C1Label control. |
| GetPreferredSize(Size) | |
| OnAutoSizeChanged(EventArgs) | |
| OnDataTypeChanged(EventArgs) | Raises the DataTypeChanged event. |
| OnStyleChanged(EventArgs) | |
| OnTextAlignChanged(EventArgs) | Raises the TextAlignChanged event. |
| OnValueChanged(EventArgs) | Raises the ValueChanged event. |
| ResetFormatInfo() | Restores the default value of the FormatInfo property. |
| ResetValue() | Restores the default value of the Value property. |
| ShouldSerializeFormatInfo() | Specifies whether to save the value of the FormatInfo property. |
| ShouldSerializeValue() | Specifies whether to save the value of the Value property. |
| Name | Description |
|---|---|
| AutoSizeChanged | Occurs when the value of the AutoSize property changes. |
| DataTypeChanged | Occurs when the DataType property changes. |
| TextAlignChanged | Occurs when the value of the TextAlign property has changed. |
| ValueChanged | Occurs when the Value property changes. |