Edit

Bagikan melalui


ControlType.LookupById(Int32) Method

Definition

Retrieves a ControlType that encapsulates a specified numerical identifier.

public:
 static System::Windows::Automation::ControlType ^ LookupById(int id);
public static System.Windows.Automation.ControlType LookupById (int id);
static member LookupById : int -> System.Windows.Automation.ControlType
Public Shared Function LookupById (id As Integer) As ControlType

Parameters

id
Int32

Identifier of the control type.

Returns

Remarks

Normally the type of a control is identified by a ControlType object. This method enables you to construct such an object when only the numerical identifier is known.

Applies to