次の方法で共有


IEditorOperations3.TrimTrailingWhiteSpace Method

Definition

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.

Applies to