Defines the name screen readers announce for the control (an empty string for the label in front of it).
Get
| C# | string Name = object.AccessibleName; string Name = object.CtlAccessibleName; |
| VB.NET | Name = object.AccessibleName As String Name = object.CtlAccessibleName As String |
| C++ | _bstr_t Name = object->AccessibleName; _bstr_t Name = object->GetAccessibleName(); |
| C | HRESULT object->get_AccessibleName(BSTR* Name); |
Put
| C# | string object.AccessibleName = Name; string object.CtlAccessibleName = Name; |
| VB.NET | object.AccessibleName = Name As String object.CtlAccessibleName = Name As String |
| C++ | _bstr_t object->AccessibleName = Name; void object->PutAccessibleName(_bstr_t Name); |
| C | HRESULT object->put_AccessibleName(BSTR Name); |
object
Name
Defines the name screen readers announce for the control (an empty string for the label in front of it).
The AccessibleName property defines the name screen readers such as Narrator and NVDA announce for the control. The default is an empty string. p Without an accessible name, the control is named after the static text control (window class Static) that comes right before it in the z-order, as a label in front of the control in a dialog resource does; its access key marker (&) is removed. Otherwise the control is named "Control #n", n being its control ID. A Windows Forms Label is not a static text control of that class, so a control on a form needs an accessible name. p In Windows Forms, the wrapper class names the property CtlAccessibleName, because Control.AccessibleName exists already.
See Also SftCalendar Object | Object Hierarchy | Accessibility (Screen Readers)