API Reference > OdDb Classes > OdDbVisualStyle Class > OdDbVisualStyle Methods > OdDbVisualStyle::setTraitFlag Method
OdDbVisualStyle::setTraitFlag Method
Syntax
C++
void setTraitFlag(OdGiVisualStyleProperties::Property flagProp, OdUInt32 flagVal, bool bEnable = true);
Parameters 
Description 
OdGiVisualStyleProperties::Property flagProp 
[in] OdGiVisualStyleProperties::Property to set.  
OdUInt32 flagVal 
[in] Flag value to set.  
bool bEnable = true 
[in] Boolean value that defines if the flag is enabled. Use true to enable the flag, false to disable. 

Sets a property flag for the visual style (for properties that are bitfield enumerations). 

 

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