Share via


TextTaskItem.Image Property

Definition

Gets the image that is associated with the task item.

public:
 property System::Object ^ Image { System::Object ^ get(); };
public object Image { get; }
member this.Image : obj
Public ReadOnly Property Image As Object

Property Value

The image object that is associated with the task item.

Examples

The following example searches the task list array for TextTaskItem objects that have an image.


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

Applies to