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.12.3.0 (10.12.3.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.endLineChar characters) are never truncated, so lines could exceed OIV.MeshViz.Nodes.PoMiscTextAttr.lineLength characters if the first word of the line contains more than OIV.MeshViz.Nodes.PoMiscTextAttr.lineLength characters.

See Also