Share via


KnownControls.GetControlName Method

Definition

Overloads

GetControlName(String)

Gets the associated control name of the specified automation element, if previously registered.

GetControlName(IAccessible, Int32)

Gets the associated control name of the specified IAccessible, if previously registered.

GetControlName(String)

Gets the associated control name of the specified automation element, if previously registered.

public:
 System::String ^ GetControlName(System::String ^ automationId);
public string GetControlName (string automationId);
member this.GetControlName : string -> string
Public Function GetControlName (automationId As String) As String

Parameters

automationId
String

Specifies the automation ID.

Returns

Applies to

GetControlName(IAccessible, Int32)

Gets the associated control name of the specified IAccessible, if previously registered.

public:
 System::String ^ GetControlName(Accessibility::IAccessible ^ accObj, int childId);
public string GetControlName (Accessibility.IAccessible accObj, int childId);
member this.GetControlName : Accessibility.IAccessible * int -> string
Public Function GetControlName (accObj As IAccessible, childId As Integer) As String

Parameters

accObj
IAccessible

Specifies the accessibility object.

childId
Int32

Specifies the child ID.

Returns

Applies to