Returns the column number of a task within the specified file.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
'Declaration Function Column ( _ <OutAttribute> ByRef piCol As Integer _ ) As Integer
int Column( out int piCol )
int Column( [OutAttribute] int% piCol )
abstract Column : piCol:int byref -> int
function Column( piCol : int ) : int
[out, retval] Number of the column that contains the task item within the file.
HRESULT IVsTaskItem::Column( [out, retval] long *piCol );
The column is not visible to the user, but is used for sorting tasks. Implement this method if there is a file, line, and column associated with your task item, and if you want to sort errors within a single line, based on the column specified. Each character on a line is equivalent to one column. Thus, to specify a task related to a coding error starting 10 characters into a line, you would specify a column number of 10.
To specify the file associated with the task item, implement the Document; to specify the line that the column refers to, implement the Line method. Implement the NavigateTo method to open the file specified by the Document method and move the cursor to the position specified by the Line and Column methods.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.