| UIControlCreatePropertyT Method |
Namespace: DigitalRune.Game.UI.ControlsAssembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.8.0.0 (1.8.0.14553)
Syntax public static int CreateProperty<T>(
Type ownerType,
string name,
string category,
string description,
T defaultValue,
UIPropertyOptions options
)
Public Shared Function CreateProperty(Of T) (
ownerType As Type,
name As String,
category As String,
description As String,
defaultValue As T,
options As UIPropertyOptions
) As Integer
public:
generic<typename T>
static int CreateProperty(
Type^ ownerType,
String^ name,
String^ category,
String^ description,
T defaultValue,
UIPropertyOptions options
)
static member CreateProperty :
ownerType : Type *
name : string *
category : string *
description : string *
defaultValue : 'T *
options : UIPropertyOptions -> int
Parameters
- ownerType
- Type: SystemType
The control type. - name
- Type: SystemString
The name of the property. - category
- Type: SystemString
The category of the property. - description
- Type: SystemString
The description of the property. - defaultValue
- Type: T
The default value. - options
- Type: DigitalRune.Game.UI.ControlsUIPropertyOptions
The UIPropertyOptions.
Type Parameters
- T
- The type of the property value.
Return Value
Type:
Int32The ID of the created property
Exceptions See Also