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

Sets a property of the visual style. 

 

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