Share via


TaskItem.IsSettable[vsTaskListColumn] Property

Definition

Returns whether a given column of a task item can be edited.

public:
 property bool IsSettable[EnvDTE::vsTaskListColumn] { bool get(EnvDTE::vsTaskListColumn Column); };
[System.Runtime.InteropServices.DispId(8)]
public bool IsSettable[EnvDTE.vsTaskListColumn Column] { [System.Runtime.InteropServices.DispId(8)] get; }
[<System.Runtime.InteropServices.DispId(8)>]
[<get: System.Runtime.InteropServices.DispId(8)>]
member this.IsSettable(EnvDTE.vsTaskListColumn) : bool
Public ReadOnly Property IsSettable(Column As vsTaskListColumn) As Boolean

Parameters

Column
vsTaskListColumn

A vsTaskListColumn constant indicating the column for the task item.

Property Value

A Boolean value indicating true if the column can be edited, false if not.

Attributes

Examples

[Visual Basic]

Sub IsSettableExample()  
   ' 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  

Applies to