Table of Contents

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

document CadDocument

The document.

viewport string

The handle of the viewport.

layer string

The name of the layer.

transparency DxfTransparency

The transparency.

Returns

CadEditResult

What came of it.

Exceptions

ArgumentNullException

Thrown when the document is null.