setLinemarkLines

setLinemarkLines(markNumber: Integer;
                 append:     Boolean;
                 lineList:   Boolean;
                 list:       IntegerArray);

The setLinemarkLines method of the JadeTextEdit class adds the linemark specified in the markNumber parameter to the lines (positions) specified in the list parameter.

If the value of the append property is false, all existing linemarks of the specified number are deleted before the entries in the list are added.

If the value of the lineList parameter is true, the list contains line numbers. If the value of the lineList parameter is set to false, the list contains character offsets that are limited to 128 entries. Values less than zero (0) or greater than the end of text are ignored.

The code fragment in the following example shows the use of the setLinemarkLines method to set linemark 1 on lines 1 and 25, and also remove the linemark from any other lines.

ia.add(1);
ia.add(25);
jteSource.setLinemarkLines(1, false, true, ia);