Click or drag to resize
PoMiscTextAttrlineLength Property

Defines the max number of characters per line.

Namespace: OIV.MeshViz.Nodes
Assembly: OIV.MeshViz (in OIV.MeshViz.dll) Version: 10.3.0.0 (10.3.0.0)
Syntax
public SoSFShort lineLength { get; }

Property Value

Type: SoSFShort
Remarks

If several endLineChar appear before the lineLength character, only the last endLineChar is taken into account. if lineLength = LINE_LENGTH_MAX, the lines length is not limited, and if lineLength = LINE_LENGTH_MIN, the lines are limited to one word.

Example of use with the string "United States of America" (24 characters) :

  • with endLineChar = ' ' and lineLength = 15, the string is cut into two lines: "United States" and "of America".

  • with endLineChar = ' ' and lineLength = 18, the string is cut into two lines: "United States of" and "America".

Be careful, words (consecutive characters delimited by OIV.MeshViz.Nodes.PoMiscTextAttr.m_endLineChar characters) are never truncated, so lines could exceed OIV.MeshViz.Nodes.PoMiscTextAttr.m_lineLength characters if the first word of the line contains more than OIV.MeshViz.Nodes.PoMiscTextAttr.m_lineLength characters.

See Also