Propriedade Shape.AccessibleName

Obtém ou define o nome do controle que é usado por aplicativos cliente de acessibilidade.

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

Sintaxe

<BrowsableAttribute(True)> _
Public Property AccessibleName As String

Dim instance As Shape
Dim value As String

value = instance.AccessibleName

instance.AccessibleName = value
[BrowsableAttribute(true)]
public string AccessibleName { get; set; }
[BrowsableAttribute(true)]
public:
property String^ AccessibleName {
    String^ get ();
    void set (String^ value);
}
public function get AccessibleName () : String
public function set AccessibleName (value : String)

Valor de propriedade

Tipo: System.String
A String que representa o nome do controle que é usado pelos aplicativos cliente de acessibilidade. O padrão é uma referência nula (Nothing em Visual Basic).

Comentários

The AccessibleName propriedade é um rótulo que descreve brevemente e identifica o objeto no seu contêiner. Por exemplo, uma forma pode ter um AccessibleNamede "oval"ou"azul quadrado pequeno." Uma linha pode ter um AccessibleNamede "linha vertical" ou "vermelha linha diagonal."

Para obter mais informações sobre propriedades de objetos acessíveis, consulte Conteúdo das propriedades descritivas na seção acessibilidade ativo da biblioteca MSDN.

Exemplos

O exemplo a seguir demonstra como conjunto o AccessibleName e AccessibleDescription Propriedades de um OvalShape controle. Suponha que você adicionou um arquivo de imagem denominado "cacto" sistema autônomo um recurso em seu projeto.

Dim OvalShape1 AsNew OvalShape
Dim canvas AsNew 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";

Permissões

Consulte também

Referência

Shape Classe

Membros Shape

Namespace Microsoft.VisualBasic.PowerPacks

Outros recursos

Como: Desenhar linhas com o Controlarar de LineShape (Visual Studio)

Como: Desenhar formas com a OvalShape e controles de RectangleShape (Visual Studio)

Introdução à linha e controles de forma (Visual Studio)