Back to Devexpress

MapEditor Members

windowsforms-devexpress-dot-xtramap-dot-mapeditor-dot-underscore-members.md

latest9.8 KB
Original Source

MapEditor Members

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

Properties

NameDescription
ActiveItemsGets or sets a collection of map items with which end-users can interact to change them.
ActiveLayerReturns the layer that the Map Editor uses to store newly created map items.
AllowSaveActionsGets or sets the value specifying whether the Map control saves an end-user’s actions performed while editing the map.
AvailableTransformReturns transformations that a user can apply to map items.
CanRedoChecks whether the “Redo” action can be performed for the edited map items.
CanRemoveItemsGets or sets the value defining whether it is possible to remove items on the map.
CanUndoChecks whether the “Undo” action can be performed for the edited map items.
EditModeReturns the Map Editor mode that is currently activated.
PanelOptionsReturns the Map Editor panel’s options.
ShowEditorPanelSpecifies whether the map editor’s panel is displayed.

Methods

NameDescription
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) staticDetermines 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() protectedCreates a shallow copy of the current Object. Inherited from Object.
Redo()Repeats the last undone action.
ReferenceEquals(Object, Object) staticDetermines 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

NameDescription
MapItemCreatingOccurs when a map item’s creation is started.
MapItemEditedOccurs when the Map Editor is used to add, edit or remove a map item.
MapItemEditingOccurs when a user stars to edit a map item.

See Also

MapEditor Class

DevExpress.XtraMap Namespace