PoMiscTextAttrlineLength Property |
Defines the max number of characters per line.
Namespace: OIV.MeshViz.Nodes
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.