| Visual Basic (Declaration) | |
|---|---|
Public Overridable Property State As ElementState | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public virtual ElementState State {get; set;} | |
Return Value
ElementState setting that determines the state of the element| C# | Copy Code |
|---|---|
Font f = new System.Drawing.Font("MS Sans Serif", 12, FontStyle.Bold); | |
| Visual Basic | Copy Code |
|---|---|
Dim f As New System.Drawing.Font("MS Sans Serif", 12, FontStyle.Bold) | |
Use this property to get or set the element state: whether it is active, inverted, or inactive.
| Note: Some elements do not change their appearance when their state changes. |
This property is available at run time only.