Skip to main content

MapEditor Members

The Vector Item Editor.

Constructors

Name Description
MapEditor() Initializes a new MapEditor instance with the default settings.

Fields

Name Description
ActiveItemsProperty static Identifies the MapEditor.ActiveItems dependency property.
ActiveLayerProperty static Identifies the MapEditor.ActiveLayer dependency property.
AllowSaveActionsProperty static Identifies the MapEditor.AllowSaveActions dependency property.
CanRemoveItemsProperty static Identifies the MapEditor.CanRemoveItems dependency property.
EditorPanelOptionsProperty static Identifies the MapEditor.EditorPanelOptions dependency property.
ModeProperty static Identifies the MapEditor.Mode dependency property.

Properties

Name Description
ActiveItems Gets or sets a collection of items that are currently on edit.
ActiveLayer Gets or sets the layer that stores all items changed by the Map Editor.
AllowSaveActions Gets or sets the value that specifies whether the command manager saves end-user changes.
CanRemoveItems Gets or sets the value the specifies whether end-users are allowed to remove any map item.
ClearSavedActionsCommand Returns the command that clears Editor command manager’s saved command list.
EditorPanelOptions Gets or sets an object that configures how the Editor Panel looks and behaves.
Mode Gets or sets the mode that the Map Editor currently uses.
RedoCommand Returns the command that restores the last canceled action.
RemoveItemsCommand Returns the command that removes the Editor’s active items from the map.
ResetModeCommand Returns the command that switches the Editor to the Default mode.
RotateItemsCommand Returns the command that rotates the Editor’s active items.
ScaleItemsCommand Returns the command that scales the Editor’s Active Items.
SetCreateModeCommand Returns the command that switches the Editor to the Create mode.
SetEditModeCommand Returns the command that switches the Editor to the Edit mode.
SetTransformModeCommand Returns the command that switches the Editor to the Transform mode.
TranslateItemsCommand Returns the command that translates the Editor’s actual items.
UndoCommand Returns the command that cancels the last action.

Methods

Name Description
ClearSavedActions() Clears the saved action history.
CreateItem(MapItemSettingsBase, Point) Creates an item with the specified settings at the specified point.
FinishItem() Finishes item creation process.
InsertItemPoint(IEditableItem, CoordPoint, Int32, Int32) Inserts a point into the specified item.
InsertItemPoint(IEditableItem, Point, Int32, Int32) Inserts a point into the specified item.
RemoveItemPoint(IEditableItem, Int32, Int32) Removes a point with the specified index from the specified item’s contour with the specified index.
RotateItems(IEnumerable<MapItem>, Double) Rotates the Editor’s active items by the specified angle.
ScaleItems(IEnumerable<MapItem>, Point, TransformOrigin) Scales the specified map items.
ScaleItems(IEnumerable<MapItem>, Point, Point) Scales the specified map items.
SimplifyItems(IEnumerable<MapItem>, Double) Reduces the number of vertices that form the vector layer’s items with specified tolerance.
TranslateItems(IEnumerable<MapItem>, Vector) Translates specified items at the specified offset.
UpdateItemPoint(IEditableItem, CoordPoint, Int32, Int32) Moves a specified point to the new position.
UpdateItemPoint(IEditableItem, Point, Int32, Int32) Moves a specified point to the new position.

Events

Name Description
MapItemCreating Occurs when the Editor starts to create a map item.
MapItemEdited Occurs when the Editor ends editing a map item.
MapItemEditing Occurs when a user stars to edit a map item.
PropertyChanged Occurs every time any of the MapDependencyObject class properties has changed its value. Inherited from MapDependencyObject.
See Also