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

'Declaração
<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)

Valor de propriedade

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

Comentários

O AccessibleName propriedade é um rótulo que descreve brevemente e a identifica o objeto no seu recipiente.Por exemplo, uma forma pode ter um AccessibleName de "pequeno oval" ou "blue quadrado". Uma linha pode ter um AccessibleName de "linha vertical" ou "linha diagonal vermelha".

Exemplos

O exemplo a seguir demonstra como definir o AccessibleName e AccessibleDescription propriedades de um OvalShape controle.Suponha que você adicionou um arquivo de imagem denominado "cacto" como um recurso em seu projeto.

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";

Segurança do .NET Framework

Consulte também

Referência

Shape Classe

Namespace Microsoft.VisualBasic.PowerPacks

Outros recursos

Como: desenhar linhas com o controle de LineShape (Visual Studio)

Como: desenhar formas com os controles de RectangleShape (Visual Studio) e o OvalShape

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