Table of Contents

Method NameOf

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Rendering.dll

NameOf(int)

Gets the name of a class: the ground is "background", then "words", "dimensions", "lines", "hatches" and "blocks", the names of the categories of a COCO file.

public static string NameOf(int id)

Parameters

id int

The class, 0 to 5.

Returns

string

The name.

Exceptions

ArgumentOutOfRangeException

Thrown when the class is not 0 to 5.