In This Article

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
Derived:
ResetZoomLevelAction ZoomInAction ZoomOutAction
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