Click or drag to resize

MetadataManagerGetIDs Method

Get ID List Collection

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> GetIDs()

Return Value

Type: ListInt32
ID List
Examples
C#
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
    if (vizcore3d.Model.IsOpen() == false) return;

    // Count
    int count = vizcore3d.Metadata.Count;

    if (count == 0) return;

    List<int> items = vizcore3d.Metadata.GetIDs();

    foreach (int id in items)
    {
        string name = vizcore3d.Metadata.GetName(id);
        byte[] buffer = vizcore3d.Metadata.GetData(id);

        // Some code here...
    }
}
See Also