Description
The Remove
method is a static method of the Editor.MapEditor.Selection
class. It is used to remove a specified MapNode
from the current selection set in the map editor. This method is part of the selection management functionality, allowing developers to programmatically modify the selection of map nodes.
Usage
To use the Remove
method, you need to pass an instance of Editor.MapDoc.MapNode
that you wish to remove from the current selection. This method does not return any value.
Ensure that the MapNode
you are trying to remove is part of the current selection; otherwise, the method will have no effect.
Example
// Example of using the Remove method
// Assume 'node' is a MapNode that is currently selected
Editor.MapDoc.MapNode node = GetSelectedNode();
// Remove the node from the current selection
Editor.MapEditor.Selection.Remove(node);