Sr.No. | Property & Description |
---|---|
1 | Autosize Gets or sets a value specifying if the control should be automatically resized to display all its contents. |
2 | BorderStyle Gets or sets the border style for the control. |
3 | FlatStyle Gets or sets the flat style appearance of the Label control |
4 | Font Gets or sets the font of the text displayed by the control. |
5 | FontHeight Gets or sets the height of the font of the control. |
6 | ForeColor Gets or sets the foreground color of the control. |
7 | PreferredHeight Gets the preferred height of the control. |
8 | PreferredWidth Gets the preferred width of the control. |
9 | TabStop Gets or sets a value indicating whether the user can tab to the Label. This property is not used by this class. |
10 | Text Gets or sets the text associated with this control. |
11 | TextAlign Gets or sets the alignment of text in the label. |
Sr.No. | Method Name & Description |
---|---|
1 | GetPreferredSize Retrieves the size of a rectangular area into which a control can be fitted. |
2 | Refresh Forces the control to invalidate its client area and immediately redraw itself and any child controls. |
3 | Select Activates the control. |
4 | Show Displays the control to the user. |
5 | ToString Returns a String that contains the name of the control. |
Sr.No. | Event & Description |
---|---|
1 | AutoSizeChanged Occurs when the value of the AutoSize property changes. |
2 | Click Occurs when the control is clicked. |
3 | DoubleClick Occurs when the control is double-clicked. |
4 | GotFocus Occurs when the control receives focus. |
5 | Leave Occurs when the input focus leaves the control. |
6 | LostFocus Occurs when the control loses focus. |
7 | TabIndexChanged Occurs when the TabIndex property value changes. |
8 | TabStopChanged Occurs when the TabStop property changes. |
9 | TextChanged Occurs when the Text property value changes. |