API Reference > OdDg Classes > OdDgGraphicsElement Class > OdDgGraphicsElement Methods > OdDgGraphicsElement::setTransparency Method
OdDgGraphicsElement::setTransparency Method
Syntax
C++
virtual OdResult setTransparency(const OdCmTransparency& transparency, bool doSubents = true);
Parameters 
Description 
const OdCmTransparency& transparency 
[in] OdCmTransparency object be assigned.  
bool doSubents = true 
[in] If and only if true, applies the change to all sub-entities owned by this entity. 

Returns eOk if successful, or an appropriate error code if not.

Sets the transparency setting of this entity, and returns eOk if successful. 

 

If you override this function, you must call OdDbEntity::setTransparency(), passing to it the calling arguments.

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