API Reference > OdDb Classes > OdDbLayerTableRecord Class > OdDbLayerTableRecord Methods > transparency Method > OdDbLayerTableRecord::transparency Method ()
OdDbLayerTableRecord::transparency Method ()
Syntax
C++
OdCmTransparency transparency() const;

Returns the transparency for the layer record object (as XData). This transparency is used when the Transparency property of an entity belonged to the layer is set to the byLayer value. The actual transparency value can depend on the viewport in which the entity is rendered.

The same layer can have different transparencies in different viewports. Therefore this method is overdriven. The method without arguments returns the own transparency of the layer.

Example of Working with the Layer Record Object 

Specific Properties of Layers 

OdDbLayerTableRecord::setTransparency() method

Copyright © 2002–2020. Open Design Alliance. All rights reserved.