A stylesheet property for a GUI component.
sealed class
|
StyleProperty
|
with
|
<T>
|
||
implements
|
IStyleProperty
|
The machine-friendly name of this style property.
public
property
|
Name
{
get
}
|
||
type
|
string
|
||
value
|
|
The property name. | |
implements
|
IStyleProperty.Name
|
Creates a new instance of StyleProperty.
public
constructor
|
StyleProperty
(string name,
T defaultValue)
|
||
params
|
name
|
[not-empty]
|
The machine-friendly style property name. |
defaultValue
|
The default value of the style property. |
Returns the value of this style property.
[Pure]
|
||||
public
method
|
Get
(Component component)
|
|||
type
|
T
|
|||
params
|
component
|
[not-null]
|
The component. | |
returns
|
The style property value. |
Returns the value of this style property.
[Pure]
|
||||
public
method
|
Get
(Component component,
T defaultValue)
|
|||
type
|
T
|
|||
params
|
component
|
[not-null]
|
The component. | |
defaultValue
|
Custom default value to use. | |||
returns
|
The style property value. |
Sets the value of this style property.
public
method
|
Set
(Component component,
T value)
|
||
params
|
component
|
[not-null]
|
The component. |
value
|
The style property value. |
Sets the value of this style property.
public
method
|
Set
(Component component,
StyleClass styleClass,
T value)
|
||
params
|
component
|
[not-null]
|
The component. |
styleClass
|
The style class. | ||
value
|
The style property value. |
Sets the value of this style property.
public
method
|
Set
(Component component,
StyleClass styleClass,
string variant,
T value)
|
||
params
|
component
|
[not-null]
|
The component. |
styleClass
|
The style class. | ||
variant
|
[not-empty]
|
The style class variant. | |
value
|
The style property value. |