SelectionSegment.
| Modifier and Type | Method and Description |
|---|---|
| public ReadOnlyProperty | |
| public ReadOnlyProperty | |
| public void | |
| public void | extendSelection(StyledTextModel
the model, must be non-null model, TextPos the new caret position, must be non-null pos)Extends selection to the specified position. |
| public SelectionSegment | |
| public ReadOnlyProperty | |
| public void | setSelection(StyledTextModel
the model, must be non-null model, TextPos the anchor position, must be non-null anchor, TextPos the caret position, must be non-null caret)Replaced existing selection, if any, with the new one. |
| anchorPositionProperty | back to summary |
|---|---|
| public ReadOnlyProperty Anchor position property. The value can be null, indicating no selection. When the anchor position
is Note
| |
| caretPositionProperty | back to summary |
|---|---|
| public ReadOnlyProperty Caret position property. The value can be null, indicating no selection. When the caret position
is Note
| |
| clear | back to summary |
|---|---|
| public void clear() Clears the selection. This sets | |
| extendSelection | back to summary |
|---|---|
| public void extendSelection(StyledTextModel model, TextPos pos) Extends selection to the specified position.
Internally, the position will be normalized to be within the document boundaries.
This method will issue a
While this method will accept the text position
outside of the document range, the actual values of
| |
| getSelection | back to summary |
|---|---|
| public SelectionSegment getSelection() Returns the current selection. The value can be null, indicating no selection. When the selection segment
is
| |
| selectionProperty | back to summary |
|---|---|
| public ReadOnlyProperty Selection property. The value can be null, indicating no selection. When the selection segment
is
| |
| setSelection | back to summary |
|---|---|
| public void setSelection(StyledTextModel model, TextPos anchor, TextPos caret) Replaced existing selection, if any, with the new one. While this method will accept the text positions
outside of the document range, the actual values of
| |