ILabel
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Provides access to the LabelWrapper associated with the controls that implement this interface.
- C#
- VB.NET
public interface ILabel
Public Interface ILabel
Using ILabel allows developers to use uniform code to access the LabelWrapper properties used by the control to show a label.
// Old code
if (control is TextBoxBase)
((TextBoxBase)control).LabelText = "Name";
else if (control is ComboBox)
((ComboBox)control).LabelText = "Name";
// etc...
// New code
if (control is ILabel)
((ILabel)control).LabelText = "Name";
Properties
Label
LabelWrapper: Provides access to the properties of the LabelWrapper associated with the control.
LabelText
String: Returns or sets the text of the label associated with the control.
Implemented By
| Name | Description |
|---|---|
| CheckedListBox | Displays a ListBox in which a check box is displayed to the left of each item. |
| ComboBox | Represents a combo box control. |
| DateTimePicker | Represents a control that allows the user to select or type a date and a time. |
| DomainUpDown | Represents a spinner control that displays string values. |
| ListBox | Represents a control to display a list of items. |
| MaskedTextBox | Uses a mask to distinguish between proper and improper user input. |
| NumericUpDown | Represents a spinner control that displays numeric values. |
| TextBox | Represents a text box control that allows the user to enter any value. |
| TextBoxBase | Implements the basic functionality required by text controls. |
| UpDownBase | Implements the basic functionality required by a spin box (also known as an up-down control). |
| DataGridViewComboBoxEditingControl | Represents a ComboBox control that can be hosted in a DataGridViewComboBoxCell. |
| DataGridViewDateTimePickerEditingControl | Represents a DateTimePicker control that can be hosted in a DataGridViewDateTimePickerCell. |
| DataGridViewMaskedTextBoxEditingControl | Represents a MaskedTextBox control that can be hosted in a DataGridViewMaskedTextBoxCell cell. |
| DataGridViewNumericUpDownEditingControl | Represents a NumericUpDown control that can be hosted in a DataGridViewNumericUpDownCell. |
| DataGridViewTextBoxEditingControl | Represents a TextBox control that can be hosted in a DataGridViewTextBoxCell cell when the cell's WrapMode is set to False. |
| ListViewComboBox | The TreeViewComboBox control represents a UserComboBox control with a ListView as the drop down panel. |
| TagTextBox | Represents a data field that displays a list of selectable and removable tags. The control recognizes tags as the user types and adds in front of the editable field. |
| TimeUpDown | Represents a spinner control that displays TimeSpan values. |
| TreeViewComboBox | The TreeViewComboBox control represents a UserComboBox control with a TreeView as the drop down panel. |
| TypedTextBox | Represents a text box control that allows the user to enter a typed value. |
| UserComboBox | The UserComboBox control represents a ComboBox control with a custom panel that drops down when the user clicks the down arrow. |