Click or drag to resize
DigitalRuneUIControlCreatePropertyT Method

Namespace: DigitalRune.Game.UI.Controls
Assembly: 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
)

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: Int32
The ID of the created property
Exceptions
ExceptionCondition
ArgumentNullExceptionownerType is .
See Also