MapNode Parent { get; set; }

robot_2Generated
code_blocksInput

Description

The Parent property of the MapNode class provides access to the parent node of the current map node. At the top level, this parent node will be the MapWorld object, which represents the entire world in the map document structure.

Usage

Use the Parent property to navigate up the hierarchy of map nodes. This can be useful for operations that require context about the node's position within the map structure, such as transformations or visibility checks.

Example

// Example of accessing the Parent property
MapNode currentNode = GetCurrentMapNode();
MapNode parentNode = currentNode.Parent;

if (parentNode != null)
{
    // Perform operations with the parent node
    string parentName = parentNode.Name;
    Console.WriteLine($"Parent Node Name: {parentName}");
}