TaskItem.Checked Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets or gets whether a task item in the Task List window has a check in the check box column.
public:
property bool Checked { bool get(); void set(bool value); };
public:
property bool Checked { bool get(); void set(bool value); };
[System.Runtime.InteropServices.DispId(11)]
public bool Checked { [System.Runtime.InteropServices.DispId(11)] get; [System.Runtime.InteropServices.DispId(11)] set; }
[<System.Runtime.InteropServices.DispId(11)>]
[<get: System.Runtime.InteropServices.DispId(11)>]
[<set: System.Runtime.InteropServices.DispId(11)>]
member this.Checked : bool with get, set
Public Property Checked As Boolean
Property Value
A Boolean value indicating true
if the task item is checked, false
if not.
- Attributes
Examples
[Visual Basic]
Sub CheckedExample1()
' 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