Method SetTransparency
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
SetTransparency(CadDocument, string, string, DxfTransparency)
Overrides a layer's transparency in a viewport, as the VP Transparency column: by alpha, in a drawing of AutoCAD 2004 on.
public static CadEditResult SetTransparency(CadDocument document, string viewport, string layer, DxfTransparency transparency)
Parameters
documentCadDocumentThe document.
viewportstringThe handle of the viewport.
layerstringThe name of the layer.
transparencyDxfTransparencyThe transparency.
Returns
- CadEditResult
What came of it.
Exceptions
- ArgumentNullException
Thrown when the document is null.