次の方法で共有


Shape.AccessibleDescription プロパティ

ユーザー補助クライアント アプリケーションで使用されているコントロールの記述を取得または設定します。

名前空間:  Microsoft.VisualBasic.PowerPacks
アセンブリ:  Microsoft.VisualBasic.PowerPacks.Vs (Microsoft.VisualBasic.PowerPacks.Vs.dll 内)

構文

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

プロパティ値

型 : System.String
String ユーザー補助クライアント アプリケーションで使用されているコントロールの説明を含む。既定値は null 参照 (Visual Basic の場合は Nothing) です。

解説

AccessibleDescription のプロパティは、オブジェクトの外観の説明を提供します。ついては、主に弱視または目のユーザーにより、コンテキストを使用すると、文脈探索したり、他のアプリケーションで使用できます。

AccessibleDescription のプロパティについてはわかりにくい場合、またはオブジェクトの AccessibleName または AccessibleRole に基づく複雑である必要があります。たとえば、テキストを 「ここに表示している図形は」、必要としない追加情報をクリックしますが、サボテンの図に示すように図形は。サボテンの図形の AccessibleNameAccessibleRole のプロパティを目的について説明しますが、AccessibleDescription のプロパティより低い有形にある 「」サボテンの図に示すように図形などの情報を示します

次の例に OvalShape のコントロールの AccessibleName と AccessibleDescription のプロパティを設定する方法を示します。プロジェクトでリソースとしてサボテン 「」という名前のピクチャ ファイルを追加するとします。

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

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

Shape クラス

Microsoft.VisualBasic.PowerPacks 名前空間

その他の技術情報

方法 : LineShape コントロールを使用して線を描画する (Visual Studio)

方法 : OvalShape コントロールおよび RectangleShape コントロールを使用して図形を描画する (Visual Studio)

ライン コントロールとシェイプ コントロールの概要 (Visual Studio)