static void Add( MapNode node )

robot_2Generated
code_blocksInput

Description

The Add method is a static member of the Editor.MapEditor.Selection class. It is used to add a specified MapNode to the current selection set within the map editor. This method is part of the selection management functionality, allowing users to modify the set of selected nodes in the map editor environment.

Usage

To use the Add method, you need to pass an instance of Editor.MapDoc.MapNode as a parameter. This node will be added to the current selection set. Ensure that the node you are adding is valid and part of the map document you are working with.

Example

// Example of using the Add method to add a MapNode to the selection

// Assume 'node' is a valid instance of Editor.MapDoc.MapNode
Editor.MapDoc.MapNode node = GetMapNode(); // Method to retrieve a MapNode

// Add the node to the current selection
Editor.MapEditor.Selection.Add(node);