TrimTrailingWhitespaceAction Class
Represents an IEditAction that trims the trailing whitespace off all the lines in the selected text, or the current document line if no text is selected.
public class TrimTrailingWhitespaceAction : EditActionBase, IEditAction, IKeyedObject
- Inheritance:
- object Command EditActionBase object
- Implements:
- IEditAction IKeyedObject
Constructors
TrimTrailingWhitespaceAction()
Initializes an instance of the TrimTrailingWhitespaceAction
class.
public TrimTrailingWhitespaceAction()
Methods
CanExecute(IEditorView)
Returns whether the edit action can execute in the specified IEditorView.
public override bool CanExecute(IEditorView view)
Parameter | Type | Description |
---|---|---|
view | IEditorView | The IEditorView to examine. |
Returns
- bool:
true
if the edit action can execute in the specified IEditorView; otherwise,false
.
Execute(IEditorView)
Executes the edit action in the specified IEditorView.
public override void Execute(IEditorView view)
Parameter | Type | Description |
---|---|---|
view | IEditorView | The IEditorView in which to execute the edit action. |
Inherited Members
- EditActionBase.GetKeyText(Keys, Keys)
- EditActionBase.ReadFromXml(XmlReader)
- EditActionBase.WriteToXml(XmlWriter)
- EditActionBase.CanRecordInMacro
- EditActionBase.Key
- EditActionBase.Text
- Command.Name
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()