 | UIControlOverrideDefaultValueT Method |
Overrides the default value of a game object property for a specific class.
Namespace: DigitalRune.Game.UI.ControlsAssembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.8.0.0 (1.8.0.14553)
Syntaxpublic static void OverrideDefaultValue<T>(
Type ownerType,
int propertyId,
T defaultValue
)
Public Shared Sub OverrideDefaultValue(Of T) (
ownerType As Type,
propertyId As Integer,
defaultValue As T
)
public:
generic<typename T>
static void OverrideDefaultValue(
Type^ ownerType,
int propertyId,
T defaultValue
)
static member OverrideDefaultValue :
ownerType : Type *
propertyId : int *
defaultValue : 'T -> unit
Parameters
- ownerType
- Type: SystemType
The class type. - propertyId
- Type: SystemInt32
The ID of the game object property. - defaultValue
- Type: T
The new default value.
Type Parameters
- T
- The type of the property value.
Exceptions
Remarks
These class-specific default values are applied to the template when the control is loaded.
See Also