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: 2024.2.2.0 (10.16.2.0)
Syntax
public SoMFColorRGBA styleColors { get; }

Property Value

Type: SoMFColorRGBA
Remarks

Use the index values defined in the OIV.Inventor.Nodes.SoTextProperty.StyleColorType enum (NOT the OIV.Inventor.Nodes.SoTextProperty.Styles 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 Note

Field available since Open Inventor 8.1

See Also