Share via


TextTaskItem.IsHeading Property

Definition

Gets a value indicating whether the task item is a heading.

public:
 property bool IsHeading { bool get(); };
public bool IsHeading { get; }
member this.IsHeading : bool
Public ReadOnly Property IsHeading As Boolean

Property Value

true if the task item is a heading; otherwise, false. The default is false.

Examples

The following example enumerates the task list array and sends the IsHeading state of all TextTaskItem objects to the trace listener.


foreach (TaskItem item in items) {
    if (item is TextTaskItem) {
        TextTaskItem tti = (TextTaskItem)item;
        if (tti.Image != null)
            DisplayImg(tti.Image);
    }
}

Applies to