Method UniqueName
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
UniqueName(string, CadToolPalette)
Gives a palette name that no palette of the set has, letters of either case the same: the name wanted, else with
(2), (3) and on after it.
public string UniqueName(string wanted, CadToolPalette except = null)
Parameters
wantedstringThe name wanted; blank is NewPaletteName.
exceptCadToolPaletteA palette whose own name is not counted, so that renaming it to its own name keeps it.
Returns
- string
The name.