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)
屬性值
類型:String
A String ,其中包含之控制項的協助工具用戶端應用程式所使用的描述。The default is a null reference (Nothing in Visual Basic).
備註
AccessibleDescription屬性會提供物件的視覺外觀的文字描述。 描述主要是用來針對弱視或眼盲的使用者,提供較佳的內容,但也可以使用內容搜尋或其他應用程式。
AccessibleDescription屬性描述並不明顯,如果需要,或者如果它是多餘根據AccessibleName或AccessibleRole的物件。 比方說,顯示的文字是 「 按一下這裡 」 圖形時就不需要其他資訊,但是顯示仙人掌圖片的圖形。 AccessibleName和AccessibleRole仙人掌圖形的屬性會描述其用途,但是AccessibleDescription屬性會傳達是無形的例如"的圖形顯示圖片的仙人掌。 」 的資訊
範例
下列範例示範如何設定AccessibleName和AccessibleDescription屬性OvalShape控制項。 假設您已加入名為"cactus"做為資源在專案中的圖片檔案。
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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
Microsoft.VisualBasic.PowerPacks 命名空間
其他資源
如何:使用 LineShape 控制項繪製線條 (Visual Studio)