API Reference > OdDb Classes > OdDbVisualStyle Class > OdDbVisualStyle Methods > OdDbVisualStyle::trait Method
OdDbVisualStyle::trait Method
Syntax
C++
OdGiVariantPtr trait(OdGiVisualStyleProperties::Property prop, OdGiVisualStyleOperations::Operation * pOp = NULL) const;
Parameters 
Description 
OdGiVisualStyleProperties::Property prop 
[in] OdGiVisualStyleProperties::Property to set.  
op 
[out] Output OdGiVisualStyleOperations::Operation that is currently in effect for this property. 

Returns a smart pointer to the OdGiVariant value of the property.

Gets a property of the visual style and an operation that is currently used for this property. 

 

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