Skip to main content

MapEditor Members

The Map Editor that allows end users to edit map vector items.

Properties

Name Description
ActiveItems Gets or sets a collection of map items with which end-users can interact to change them.
ActiveLayer Returns the layer that the Map Editor uses to store newly created map items.
AllowSaveActions Gets or sets the value specifying whether the Map control saves an end-user’s actions performed while editing the map.
AvailableTransform Returns transformations that a user can apply to map items.
CanRedo Checks whether the “Redo” action can be performed for the edited map items.
CanRemoveItems Gets or sets the value defining whether it is possible to remove items on the map.
CanUndo Checks whether the “Undo” action can be performed for the edited map items.
EditMode Returns the Map Editor mode that is currently activated.
PanelOptions Returns the Map Editor panel’s options.
ShowEditorPanel Specifies whether the map editor’s panel is displayed.

Methods

Name Description
ClearSavedActions() Clears all the saved actions.
CopyItems(IEnumerable<MapItem>, VectorItemsLayer) Copies the specified map items to the target layer.
CreateItem(CreatableMapItemKind, MapPoint) Creates an item of the specified type at the defined screen point.
Dispose() Disposes of the current object. Inherited from MapDisposableObject.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
FinishItem() Finishes the current edit or create operation.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
InsertItemPoint(IEditableItem, CoordPoint, Int32, Int32) Inserts a new point to a map item’s contour.
InsertItemPoint(IEditableItem, MapPoint, Int32, Int32) Inserts a new point to a map item’s contour.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
Redo() Repeats the last undone action.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
RemoveItemPoint(IEditableItem, Int32, Int32) Removes a map item’s contour point.
RemoveItems(IEnumerable<MapItem>) Removes the specified items.
ResetEditMode() Resets the Map Editor‘s edit mode (sets the EditMode property to None).
RotateItems(IEnumerable<MapItem>, Double) Rotates the items at the specified angle.
ScaleItems(IEnumerable<MapItem>, Double, Double, MapPoint) Scales the map items.
ScaleItems(IEnumerable<MapItem>, Double, Double, TransformOrigin) Scales the map items.
SetCreateMode(CreatableMapItemKind) Enables the Map Editor‘s Create mode. In this mode, you can create map items of the specified type.
SetEditMode() Sets the mode that allows end users to edit map items.
SetTransformMode(MapItemTransform) Enables the Map Editor‘s Transformation mode. In this mode, you can transform map items.
SimplifyItems(ShapeSimplifierBase, IEnumerable<MapItem>, Double) Reduces the number of vertices that form the vector layer’s items with the specified simplification algorithm and tolerance.
SimplifyItems(IEnumerable<MapItem>, Double) Reduces the number of vertices that form the vector layer’s items with specified tolerance.
ToString() Returns the textual representation of the MapEditor.
TranslateItems(IEnumerable<MapItem>, Double, Double) Translates items at the specified offset.
Undo() Undoes the last edit action.
UpdateItemPoint(IEditableItem, CoordPoint, Int32, Int32) Updates a map item’s contour point coordinates.
UpdateItemPoint(IEditableItem, MapPoint, Int32, Int32) Updates a map item’s contour point coordinates.

Events

Name Description
MapItemCreating Occurs when a map item’s creation is started.
MapItemEdited Occurs when the Map Editor is used to add, edit or remove a map item.
MapItemEditing Occurs when a user stars to edit a map item.
See Also