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)


<BrowsableAttribute(True)> _
Public Property AccessibleRole As AccessibleRole
Dim instance As Shape 
Dim value As AccessibleRole 

value = instance.AccessibleRole

instance.AccessibleRole = value
public AccessibleRole AccessibleRole { get; set; }
property AccessibleRole AccessibleRole {
    AccessibleRole get ();
    void set (AccessibleRole value);
public function get AccessibleRole () : AccessibleRole 
public function set AccessibleRole (value : AccessibleRole)

Property Value

Type: System.Windows.Forms.AccessibleRole
One of the values of AccessibleRole. The default is Default.


Exception Condition

The value assigned is not one of the AccessibleRole values.


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.

For more information about properties of accessible objects, see Content of Descriptive Properties in the Active Accessibility section of the MSDN Library.

.NET Framework Security

See Also


Shape Class

Shape Members

Microsoft.VisualBasic.PowerPacks Namespace

Other Resources

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)