Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the number of lines in the TextBuffer object.
Syntax
public int numLines()
Run On
Called
Return Value
Type: int
The number of lines in the content.
Remarks
Lines are separated by newlines ('\n').
Examples
{
TextBuffer txtb = new TextBuffer();
if (txtb.fromClipboard())
{
print "Clipboard contains ",txtb.numLines()," lines.";
}
}