KnownControls.RegisterControl Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| RegisterControl(String, String) |
Associates control name with the specified automation element identifier. |
| RegisterControl(String, IAccessible, Int32) |
Associates control name with the specified IAccessible using the internal IAccessible identification scheme. |
RegisterControl(String, String)
Associates control name with the specified automation element identifier.
public:
void RegisterControl(System::String ^ controlName, System::String ^ automationId);
public void RegisterControl(string controlName, string automationId);
member this.RegisterControl : string * string -> unit
Public Sub RegisterControl (controlName As String, automationId As String)
Parameters
- controlName
- String
Specifies the control name.
- automationId
- String
Specifies the automation ID.
Applies to
RegisterControl(String, IAccessible, Int32)
Associates control name with the specified IAccessible using the internal IAccessible identification scheme.
public:
void RegisterControl(System::String ^ controlName, Accessibility::IAccessible ^ accObj, int childId);
public void RegisterControl(string controlName, Accessibility.IAccessible accObj, int childId);
member this.RegisterControl : string * Accessibility.IAccessible * int -> unit
Public Sub RegisterControl (controlName As String, accObj As IAccessible, childId As Integer)
Parameters
- controlName
- String
Specifies the control name.
- accObj
- IAccessible
Specifies the accessibility object.
- childId
- Int32
Specifies the child ID.