AutomationPeer.IsContentElement 方法

定義

取得值,這個值表示與此 Automation Peer 相關聯的項目是否包含呈現給使用者的資料。Gets a value that indicates whether the element that is associated with this automation peer contains data that is presented to the user.

public:
 bool IsContentElement();
public bool IsContentElement ();
member this.IsContentElement : unit -> bool
Public Function IsContentElement () As Boolean

傳回

Boolean

如果項目是內容項目則為 true,否則為 falsetrue if the element is a content element; otherwise, false.

例外狀況

目前正在公開呼叫此方法。A public call to this method is currently in progress.

備註

Content 元素包含向使用者呈現的資料。A content element contains data that is presented to the user. Content 專案的範例是清單方塊中的專案或對話方塊中的按鈕。An example of a content element is an item in a list box or a button in a dialog box. 您通常會使用非內容元素 (也稱為「周邊元素」) 來處理複合控制項中的內容。You typically use non-content elements (which are also referred to as peripheral elements) to work with the content in a composite control. 非內容專案的範例是下拉式控制項中的按鈕。An example of a non-content element is the button in a drop-down control.

適用於