API Reference > OdDb Classes > OdDbVisualStyle Class > OdDbVisualStyle Methods > setTrait Method > OdDbVisualStyle::setTrait Method (OdGiVisualStyleProperties::Property, double, OdGiVisualStyleOperations::Operation)
OdDbVisualStyle::setTrait Method (OdGiVisualStyleProperties::Property, double, OdGiVisualStyleOperations::Operation)
Syntax
C++
void setTrait(OdGiVisualStyleProperties::Property prop, double dVal, OdGiVisualStyleOperations::Operation op = OdGiVisualStyleOperations::kSet);
Parameters 
Description 
OdGiVisualStyleProperties::Property prop 
[in] OdGiVisualStyleProperties::Property to set.  
double dVal 
[in] Boolean property value to set.  
OdGiVisualStyleOperations::Operation op = OdGiVisualStyleOperations::kSet 
[in] OdGiVisualStyleOperations::Operation to use for setting the property. 

Sets a double property of the visual style. 

 

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