"wrapColumnOrWidth"

The attribute "wrapColumnOrWidth" sets the number of characters for the wrap mode "FixedColumnWidth" and the number of pixels for the wrap mode "FixedPixelWidth".

Synopsis

this.wrapColumnOrWidth(int numb);

Parameter

Parameter Description
shape Name of the object
numb The number of characters or pixels. The number of characters for the wrap mode "FixedColumnWidth" and the number of pixels for the wrap mode "FixedPixelWidth".

Description

The attribute "wrapColumnOrWidth" sets the number of characters for the wrap mode "FixedColumnWidth" and the number of pixels for the wrap mode "FixedPixelWidth".

Example

The code sets the wrap mode to "FixedColumnWidth" and sets the number of characters to 20 using "wrapColumnOrWidth". This means a word-wrap at the 20th character.

main(bool enter)
{
  this.wordWrap = "FixedColumnWidth";
  int wrpW = 20;
  this.wrapColumnOrWidth(wrpW);
}

Assignment

TextEdit