Compartir a través de


TaskItem.Displayed Property

Definition

Gets whether the task item is currently visible in the Task List window.

public:
 property bool Displayed { bool get(); };
public:
 property bool Displayed { bool get(); };
[System.Runtime.InteropServices.DispId(10)]
public bool Displayed { [System.Runtime.InteropServices.DispId(10)] get; }
[<System.Runtime.InteropServices.DispId(10)>]
[<get: System.Runtime.InteropServices.DispId(10)>]
member this.Displayed : bool
Public ReadOnly Property Displayed As Boolean

Property Value

A Boolean value indicating true if the item is visible, false if not.

Attributes

Examples

[Visual Basic]

Sub DisplayedExample1()  
   ' Before running, add a task to the Task List.  
   Dim win As Window = DTE.Windows.Item(Constants.vsWindowKindTaskList)  
   Dim TL As TaskList = win.Object  
   Dim TLItem As TaskItem = TL.TaskItems.Item(1)  
   Dim msg As String  

   ' List properties of the Task Item.  
   msg = "TaskItem Category property value: " & TLItem.Category & vbCr  
   msg = msg & "TaskItem SubCategory property value: " & TLItem.SubCategory & vbCr  
   msg = msg & "TaskItem Checked property value: " & TLItem.Checked & vbCr  
   msg = msg & "TaskItem Displayed property value: " & TLItem.Displayed & vbCr  
   msg = msg & "TaskItem IsSettable property value: " & TLItem.IsSettable(vsTaskListColumn.vsTaskListColumnCheck) & vbCr  
   msg = msg & "TaskItem Priority property value: " & TLItem.Priority & vbCr  
   MsgBox(msg)  
End Sub  

Remarks

The value of Displayed does not necessarily affect the visibility of the item. If, for example, the value of Displayed is true, and a task item fits the section criteria for displaying in the scrollable area of the Task List window, it still may not be visible due to scrolling.

Applies to