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

Sets a string property of the visual style. 

 

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