Click or drag to resize
DigitalRuneUIControlCreateEventT 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 CreateEvent<T>(
	Type ownerType,
	string name,
	string category,
	string description,
	T defaultEventArgs
)
where T : EventArgs

Parameters

ownerType
Type: SystemType
The control type.
name
Type: SystemString
The name of the event.
category
Type: SystemString
The category of the event.
description
Type: SystemString
The description of the event.
defaultEventArgs
Type: T
The default event arguments.

Type Parameters

T
The type of the event arguments.

Return Value

Type: Int32
The ID of the created event.
Exceptions
ExceptionCondition
ArgumentNullExceptionownerType is .
See Also