| UIControlCreateEventT 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 CreateEvent<T>(
Type ownerType,
string name,
string category,
string description,
T defaultEventArgs
)
where T : EventArgs
Public Shared Function CreateEvent(Of T As EventArgs) (
ownerType As Type,
name As String,
category As String,
description As String,
defaultEventArgs As T
) As Integer
public:
generic<typename T>
where T : EventArgs
static int CreateEvent(
Type^ ownerType,
String^ name,
String^ category,
String^ description,
T defaultEventArgs
)
static member CreateEvent :
ownerType : Type *
name : string *
category : string *
description : string *
defaultEventArgs : 'T -> int when '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:
Int32The ID of the created event.
Exceptions See Also