Click or drag to resize
SoTextPropertyalignmentH Property

Indicates horizontal placement and alignment of strings.

Namespace: OIV.Inventor.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public SoSFEnum<SoTextPropertyAlignmentHs> alignmentH { get; }

Property Value

Type: SoSFEnumSoTextPropertyAlignmentHs
Remarks

Use the OIV.Inventor.Nodes.SoTextProperty.AlignmentHs enum. Default value is LEFT. With LEFT alignment, the left edge of the first line is at the (transformed) origin, and all left edges are aligned. RIGHT alignment is similar. CENTER alignment places the center of the first string at the (transformed) origin, with the centers of all remaining strings aligned under it. Default value can be changed using the environment variable OIV_TEXT_ALIGNMENTH.

Note: This field is only effective when the justification field of a text node is set to INHERITED. When orientation is vertical, horizontal alignment is only applied on the first line.

See Also