Click or drag to resize
SoText2justification Property

Specifies horizontal alignment of strings.

Namespace: OIV.Inventor.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public SoSFEnum<SoText2Justifications> justification { get; }

Property Value

Type: SoSFEnumSoText2Justifications
Remarks

With LEFT justification, the left edge of the first line is at the (transformed) origin, and all left edges are aligned. RIGHT justification is similar. CENTER justification places the center of the first string at the (transformed) origin, with the centers of all remaining strings aligned under it. Use enum OIV.Inventor.Nodes.SoText2.Justifications. Default is LEFT.

Both horizontal and vertical alignment can be specified using an OIV.Inventor.Nodes.SoTextProperty node. However the justification setting in this node overrides the horizontal setting in OIV.Inventor.Nodes.SoTextProperty unless this field is set to INHERITED.

See Also