IsAccessible Property

Shape.IsAccessible Property


Gets or sets a value indicating whether a line or shape control is available to accessibility applications.

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

public bool IsAccessible { get; set; }

Property Value

Type: System.Boolean

true if the control is available to accessibility applications; otherwise, false. The default value is true.

When a line or shape controls is used strictly for decorative purposes and its Enabled property is set to false, you may want to set the IsAccessible property to false to minimize the effect on accessibility applications.

The following example sets the IsAccessible property of each shape in a collection to false if the Enabled property of that shape is false.

private void SetAccessibility()
    // Loop through the Shapes collection of the form.
    foreach (Shape s in shapeContainer1.Shapes)
        // If the shape is disabled, set IsAccessible to false.
        if (s.Enabled == false)
            s.IsAccessible = false;
Return to top
© 2016 Microsoft