TextLayout.setSegments

Sets the offsets of the receiver's text segments. Text segments are used to override the default behaviour of the bidirectional algorithm. Bidirectional reordering can happen within a text segment but not between two adjacent segments. <p> Each text segment is determined by two consecutive offsets in the <code>segments</code> arrays. The first element of the array should always be zero and the last one should always be equals to length of the text. </p>

@param segments the text segments offset

@exception SWTException <ul> <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> </ul>

class TextLayout
void
setSegments
(
int[] segments
)

Meta