Method ViewNames
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
ViewNames(CadDocument, CadSpace)
Gets the named views a space can plot, as the View list of the Plot dialog offers them: the views of model space for model space, those of paper space for a layout, in ordinal order of their names, letters of either case the same; empty where there are none, which is when the dialog greys View.
public static IReadOnlyList<string> ViewNames(CadDocument document, CadSpace space)
Parameters
documentCadDocumentThe document.
spaceCadSpaceThe space plotted.
Returns
- IReadOnlyList<string>
The names, a new list.
Exceptions
- ArgumentNullException
Thrown when the document or the space is null.