ControlType.LookupById(Int32) Methode

Definition

Ruft ein ControlType ab, das einen angegebenen numerischen Bezeichner kapselt.

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

Parameter

id
Int32

Bezeichner des Steuerelementtyps.

Gibt zurück

Hinweise

Normalerweise wird der Typ eines Steuerelements durch ein ControlType -Objekt identifiziert. Mit dieser Methode können Sie ein solches Objekt erstellen, wenn nur der numerische Bezeichner bekannt ist.

Gilt für: