AutomationPeer.IsContentElement Method


Gets a value that indicates whether the element that is associated with this automation peer contains data that is presented to the user.

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


true if the element is a content element; otherwise, false.


A public call to this method is currently in progress.


A content element contains data that is presented to the user. 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.

Applies to

See also