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

Sets an integer property of the visual style. 

 

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