|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Assembly: EnvDTE (in envdte.dll)
void LineUp ( [OptionalAttribute] [InAttribute] bool Extend, [OptionalAttribute] [InAttribute] int Count )
void LineUp ( /** @attribute InAttribute() */ /** @attribute OptionalAttribute() */ boolean Extend, /** @attribute InAttribute() */ /** @attribute OptionalAttribute() */ int Count )
Optional. Determines whether the line in which the insertion point is moved is highlighted. The default is false.
Optional. Indicates how many lines up to move the insertion point. The default is 1.
LineUp moves the insertion point of the selected text up Count number of lines from its current position. If Extend is true, then the new line is highlighted after the insertion point is moved. If the beginning of the document is encountered before Count lines, then the position remains at the beginning of the document. LineUp tries to match the display column from the line of origin to the target line, rounding down a character position, if necessary, if it ends up in the middle of a tab on the target line.
If the value of Count is negative, then LineUp performs like the method.