IEditorOperations3.TrimTrailingWhiteSpace Method
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.
Deletes all white space from ends of the selected lines.
public:
bool TrimTrailingWhiteSpace();
public:
bool TrimTrailingWhiteSpace();
bool TrimTrailingWhiteSpace();
public bool TrimTrailingWhiteSpace ();
abstract member TrimTrailingWhiteSpace : unit -> bool
Public Function TrimTrailingWhiteSpace () As Boolean
Returns
true
if the edit succeeded, otherwise false
.
Remarks
The algorithm for this operation follows these rules:
If there is no selection, the trailing white space is deleted on all lines in the document.
If there is a selection, then the trailing white space is deleted on all lines the selection spans.