AccessibleObject.Description 屬性

定義

取得描述指定物件之視覺外觀的字串。Gets a string that describes the visual appearance of the specified object. 並非所有的物件都有描述。Not all objects have a description.

public:
 virtual property System::String ^ Description { System::String ^ get(); };
public virtual string Description { get; }
member this.Description : string
Public Overridable ReadOnly Property Description As String

屬性值

物件對使用者之視覺外觀的描述,如果物件並沒有描述,則為 nullA description of the object's visual appearance to the user, or null if the object does not have a description.

例外狀況

無法擷取控制項的描述。The description for the control cannot be retrieved.

備註

這個屬性會描述物件對使用者的視覺外觀。This property describes the object's visual appearance to the user.

給繼承者的注意事項

如果物件包裝了系統控制項,則預設的執行會傳回可存取物件的描述。否則,它會傳回 nullThe default implementation returns the accessible object's description if the object wraps a system control; otherwise, it returns null. 描述通常用來為低願景或盲人使用者提供更大的內容。The description is typically used to provide greater context for low-vision or blind users. 它也可以用於內容搜尋或其他應用程式。It can also be used for context searching or other applications. 如果描述不明顯,或如果是根據物件的 NameRoleStateValue 屬性而重複,伺服器就必須支援 Description 屬性。Servers need to support the Description property if the description is not obvious, or if it is redundant based on the object's Name, Role, State, and Value properties. 例如,具有「確定」的按鈕不需要額外的資訊,但是顯示仙人掌圖片的按鈕會是。For example, a button with "OK" does not need additional information, but a button that shows a picture of a cactus would. [仙人掌] 按鈕的 [Name]、[Role] 和 [可能 Help 的屬性] 會描述其用途,但 [Description] 屬性會傳達較不明確的資訊,例如「顯示仙人掌的圖片」的按鈕。The Name, Role, and perhaps Help properties for the cactus button describe its purpose, but the Description property conveys information that is less tangible, like "A button that shows a picture of a cactus".

適用於

另請參閱