Udostępnij za pośrednictwem


Właściwość Shape.AccessibleName —

Pobiera lub ustawia nazwę formantu, który jest używany przez aplikacje klienckie ułatwień dostępu.

Przestrzeń nazw:  Microsoft.VisualBasic.PowerPacks
Zestaw:  Microsoft.VisualBasic.PowerPacks.Vs (w Microsoft.VisualBasic.PowerPacks.Vs.dll)

Składnia

'Deklaracja
<BrowsableAttribute(True)> _
Public Property AccessibleName As String
[BrowsableAttribute(true)]
public string AccessibleName { get; set; }
[BrowsableAttribute(true)]
public:
property String^ AccessibleName {
    String^ get ();
    void set (String^ value);
}
[<BrowsableAttribute(true)>]
member AccessibleName : string with get, set
function get AccessibleName () : String 
function set AccessibleName (value : String)

Wartość właściwości

Typ: String
Element String reprezentujący nazwę formant, który jest używany przez aplikacje klienckie ułatwień dostępu.Wartość domyślna to odwołanie o wartości null (Nothing w Visual Basic).

Uwagi

AccessibleName Właściwość jest etykiety, która zwięźle opisuje i identyfikuje obiekt wewnątrz jego kontenera.Na przykład może być kształt AccessibleName "małe Elipsa" lub "niebieski kwadrat". Wiersz może mieć AccessibleName "pionowym wierszem" lub "red przekątnej."

Przykłady

W poniższym przykładzie pokazano sposób ustawiania AccessibleName i AccessibleDescription właściwości OvalShape kontroli.Założenie, którzy znajdują się w pliku obrazu jest o nazwie "kaktus" jako zasób w projekcie.

Dim OvalShape1 As New OvalShape
Dim canvas As New ShapeContainer
' Set the form as the parent of the ShapeContainer.
canvas.Parent = Me 
' Set the ShapeContainer as the parent of the OvalShape.
OvalShape1.Parent = canvas
' Assign an image resource to the BackgroundImage property.
OvalShape1.BackgroundImage = My.Resources.cactus
OvalShape1.Size = New Size(My.Resources.cactus.Size)
' Assign the AccessibleName and AccessibleDescription text.
OvalShape1.AccessibleName = "Image"
OvalShape1.AccessibleDescription = "A picture of a cactus"
OvalShape OvalShape1 = new OvalShape();
ShapeContainer canvas = new ShapeContainer();
// Set the form as the parent of the ShapeContainer.
canvas.Parent = this;
// Set the ShapeContainer as the parent of the OvalShape.
OvalShape1.Parent = canvas;
// Assign an image resource to the BackgroundImage property.
OvalShape1.BackgroundImage = VbPowerPacksShapeAccessibleCS.Properties.Resources.cactus;
OvalShape1.Size = new Size(VbPowerPacksShapeAccessibleCS.Properties.Resources.cactus.Height, 
    VbPowerPacksShapeAccessibleCS.Properties.Resources.cactus.Width);
// Assign the AccessibleName and AccessibleDescription text.
OvalShape1.AccessibleName = "Image";
OvalShape1.AccessibleDescription = "A picture of a cactus";

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

Shape Klasa

Przestrzeń nazw Microsoft.VisualBasic.PowerPacks

Inne zasoby

Porady: rysowanie linii za pomocą formantów LineShape (Visual Studio)

Porady: rysowanie kształtów za pomocą formantów OvalShape i RectangleShape (Visual Studio)

Linie i kształty — Wprowadzenie do formantów (Visual Studio)