Version

LocalizedControlType Property

Returns or set a text string describing the type of control that the automation element represents.
Syntax
'Declaration
 
Public Property LocalizedControlType As String
public string LocalizedControlType {get; set;}
Remarks

The string should contain only lowercase characters: Correct: "button" Incorrect: "Button"

When LocalizedControlType is not specified by the element provider, the default localized string is supplied by the framework, according to the control type of the element (for example, "button" for the button control type). An automation element with the Custom control type must support a localized control type string that represents the role of the element (for example, "color picker" for a custom control that enables users to choose and specify colors).

When a custom value is supplied, the string must match the application UI language or the operating system default UI language.

The LocalizedControlType property has a variant type of VT_BSTR; the default value is an empty string.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also