Method SetColor
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
SetColor(CadDocument, string, string, DxfColor)
Overrides a layer's colour in a viewport, as the VP Color column: one of the index or a true colour; ByLayer and ByBlock refused.
public static CadEditResult SetColor(CadDocument document, string viewport, string layer, DxfColor color)
Parameters
documentCadDocumentThe document.
viewportstringThe handle of the viewport.
layerstringThe name of the layer.
colorDxfColorThe colour.
Returns
- CadEditResult
What came of it.
Exceptions
- ArgumentNullException
Thrown when the document is null.