Share via


Shape.AccessibleRole Property

 

Gets or sets the accessible role of the control.

Namespace:   Microsoft.VisualBasic.PowerPacks
Assembly:  Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)

Syntax

[BrowsableAttribute(true)]
public AccessibleRole AccessibleRole { get; set; }
public:
[BrowsableAttribute(true)]
property AccessibleRole AccessibleRole {
    AccessibleRole get();
    void set(AccessibleRole value);
}
[<BrowsableAttribute(true)>]
member AccessibleRole : AccessibleRole with get, set
<BrowsableAttribute(True)>
Public Property AccessibleRole As AccessibleRole

Property Value

Type: System.Windows.Forms.AccessibleRole

One of the values of AccessibleRole. The default is Default.

Exceptions

Exception Condition
InvalidEnumArgumentException

The value assigned is not one of the AccessibleRole values.

Remarks

The AccessibleRole property describes what kind of user interface element an object is. If the control's role cannot be determined, the AccessibleRole property is set to Default.

See Also

Shape Class
Microsoft.VisualBasic.PowerPacks Namespace
How to: Draw Lines with the LineShape Control (Visual Studio)
How to: Draw Shapes with the OvalShape and RectangleShape Controls (Visual Studio)
Introduction to the Line and Shape Controls (Visual Studio)

Return to top