Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the usage of AccessibleRole property in a user control?

there are two properties with these names in user control :

1- AccessibleName 2- AccessibleRole

What are these properties and what's their usages in an win form application? I have already take a look at MSDN but unfortunately I couldn't understand their descriptions?

any help will be appreciated

like image 515
masoud ramezani Avatar asked Jun 19 '12 10:06

masoud ramezani


People also ask

What are the properties of control?

These include properties such as Font, ForeColor, BackColor, Bounds, ClientRectangle, DisplayRectangle, Enabled, Focused, Height, Width, Visible, AutoSize, and many others.

What is control property in C#?

The controls you add to a form have something called Properties. A property of a control is things like its Height, its Width, its Name, its Text, and a whole lot more besides.


1 Answers

Those are special attributes that can be used by screen readers or text-to-speech programs to make your program accessible to people with disabilities or who use assistive technology.

AccessibleName can be used to tell the user the element the cursor is sitting in. E.g. the assistive technology program can't determin which label around the text box belongs to it, but it's able to read that attribute (i.e. "what's the meaning of this box?"). A more detailed description can be added to AccessibleDescription.

In a similar way AccessibleRole describes the user (or tells the tool) what kind of control this is. This isn't as important for the standard controls, but imagine some custom button or hyperlink control: With this attribute it's able to tell "Hey, I'm clickable and I'm a button/link!".

like image 68
Mario Avatar answered Sep 28 '22 04:09

Mario