TextSelection::PadToColumn Method (Int32)

 

Fills the current line in the buffer with empty characters (white space) to the given column.

Namespace:   EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

void PadToColumn(
	int Column
)

Parameters

Column
Type: System::Int32

Required. The number of columns to pad, starting at one.

PadToColumn inserts tabs and spaces, according to global settings, from the selection's display column to the specified display column. If the active end of the selection already lies beyond the specified column, PadToColumn does nothing. For TextSelection.PadToColumn, the selection immediately follows the inserted white space and is collapsed.

No code example is currently available or this language may not be supported.
Return to top
Show: