Generic Function | Package: cg | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version

## rich-edit-selected-range

Arguments: text-edit-pane &key (format :rich-text)

The function returns a string for the currently selected text of window. Calling this function is the same as calling rich-edit-range and passing in the start and end of the current selection. If format is :rich-text (the default), then a rich-text string is returned. If it is :text, then a plain-text string is returned.

The setf function writes a string over the current selection of window. Calling it is the same as calling setf on rich-edit-range and passing in the start and end of the current selection. If format is :rich-text (the default), then string should be a rich-text string, which will be inserted using its own formatting. If it is :text, then string should be a plain-text string, which will be inserted using the formatting at the current position of the text-edit-pane.

See cg-rich-text.htm for information about rich text editing in Common Graphics.

Copyright (c) 1998-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version