Click or drag to resize
SoTextPropertystyleColors Property

Specifies the color to use for each style.

Namespace: OIV.Inventor.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 9.9.13.0 (9.9.13.0)
Syntax
public SoMFColorRGBA styleColors { get; }

Property Value

Type: SoMFColorRGBA
Remarks

Use the index values defined in the StyleColor enum (NOT the Style enum) to assign the color to the desired style. For example, assign opaque red to the underline color.

SoTextProperty node = new SoTextProperty();
node.styleColors.Set1Value( (int)SoTextProperty.StyleColorType.UNDERLINE_COLOR, new SbColorRGBA(1,0,0,1) );
Default is (0.8,0.8,0.8,1) = the Open Inventor default diffuse color with alpha=1 (opaque).

NOTE: field available since Open Inventor 8.1

See Also