ZoomActionBase Class
Provides a base class for an IEditAction that adjusts the editor's zoom level.
public abstract class ZoomActionBase : EditActionBase, IEditAction, IKeyedObject
- Inheritance:
- object RoutedCommand RoutedUICommand EditActionBase object
- Implements:
- IEditAction IKeyedObject
Constructors
ZoomActionBase(string)
Initializes an instance of the ZoomActionBase
class.
protected ZoomActionBase(string text)
Parameter | Type | Description |
---|---|---|
text | string | The command text. |
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
.
IncrementZoomLevel(IEditorView, double)
Increments the editor's zoom level by the specified factor.
protected static void IncrementZoomLevel(IEditorView view, double factor)
Parameter | Type | Description |
---|---|---|
view | IEditorView | The IEditorView in which to execute the edit action. |
factor | double | The zoom factor, which can be negative. |
Inherited Members
- EditActionBase.Execute(IEditorView)
- EditActionBase.GetKeyText(ModifierKeys, Key)
- EditActionBase.ReadFromXml(XmlReader)
- EditActionBase.WriteToXml(XmlWriter)
- EditActionBase.CreateCommandBinding()
- EditActionBase.CreateCommandBinding(ICommand)
- EditActionBase.CanRecordInMacro
- EditActionBase.Key
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()