public static IILayer GetNodeLayer(this IINode node) { int num = node.NumRefs; for (int i = 0; i < num; i++) { IILayer r = node.GetReference(i) as IILayer; if (r != null) { return(r); } } return(null); }
/// <summary> /// Returns IILayer obect from provided IINode. /// </summary> /// <param name="node"></param> /// <returns></returns> public static IILayer GetLayer(IINode node) { return(node.GetReference(6) as IILayer); }
protected override TreeNode GetParentTreeNode(IINode node) { IILayer layer = node.GetReference((int)ReferenceNumbers.NodeLayerRef) as IILayer; if (layer == null) return null; return this.GetFirstTreeNode(layer); }