Click or drag to resize

Object3DManagerGetSelectedIndexInSelectedOrder Method

선택된 순서대로 개체 목록 반환

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public List<int> GetSelectedIndexInSelectedOrder()

Return Value

Type: ListInt32
개체 인덱스 목록
Examples
C#
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
    vizcore3d.Object3D.OnObject3DSelected += Object3D_OnObject3DSelected;
}

private void Object3D_OnObject3DSelected(object sender, Event.EventManager.Object3DSelectedEventArgs e)
{
    if (e.Node.Count == 0) return;

    List<int> orderedIndex = vizcore3d.Object3D.GetSelectedIndexInSelectedOrder();
    List<VIZCore3D.NET.Data.Node> orderedNode = vizcore3d.Object3D.GetSelectedNodeInSelectedOrder();

    for (int i = 0; i < orderedIndex.Count; i++)
    {
        System.Diagnostics.Debug.WriteLine(orderedIndex[i]);

        // Or
        System.Diagnostics.Debug.WriteLine(orderedNode[i].NodeName);
    }
}
See Also