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

Sets a color property of the visual style with given RGB component values. 

 

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