Component | +--Control | +--RichEditpublic class RichEdit
The RichEdit class encapsulates a Win32 RichEdit control. The topics in this section are currently under construction.
Fields
Name | Description |
---|---|
EM_GETPARAFORMAT | Represents the message that is submitted to this control to retrieve the control's paragraph format setting. |
EM_SETPARAFORMAT | Represents the message that is submitted to this control to set the paragraph format. |
EM_SETTARGETDEVICE | Represents the message that is submitted to this window to set the target device and line width used for WYSIWYG (what you see is what you get) formatting in a RichEdit control. |
ES_SAVESEL | Topic under construction. |
ES_SELECTIONBAR | Topic under construction. |
PFA_CENTER | Indicates that paragraphs are centered in the control. |
PFA_LEFT | Indicates that paragraphics are aligned with the left margin. |
PFA_RIGHT | Indicates that paragraphs are aligned with the right margin. |
PFM_ALIGNMENT | Topic under construction. |
PFM_NUMBERING | Topic under construction. |
PFM_OFFSET | Topic under construction. |
PFM_OFFSETINDENT | Topic under construction. |
PFM_RIGHTINDENT | Topic under construction. |
PFM_STARTINDENT | PARAFORMAT mask values |
PFM_TABSTOPS | Topic under construction. |
PFN_BULLET | Indicates that the paragraph is bulleted. |
Constructors
Name | Description |
---|---|
RichEdit() | Constructs a RichEdit control. |
Methods
Name | Description |
---|---|
GetParaFormat(PARAFORMAT pf) | Topic under construction. |
GetParaFormatSelection() | Topic under construction. |
getReadOnly() | Retrieves a boolean value that indicates whether this control is read-only. |
getSelectedText() | Retrieves the currently selected text, and returns it in a String object. |
getSelectionEnd() | Retrieves the zero-based index of the last character in the current selection. |
getSelectionStart() | Retrieves the zero-based index of the first character in the current selection. |
select(int start, int end) | Selects the text within the specified range. |
selectAll() | Selects all characters in the RichEdit control. |
SetParaFormat(PARAFORMAT pf) | Topic under construction. |
setReadOnly(boolean value) | Specifies whether the RichEdit control is read-only. |
setSelectedText(String value) | Replaces the currently selected text with the specified text. |
setSelectionEnd(int value) | Specifies the zero-based index of the last character of a text selection in the RichEdit control. |
setSelectionStart(int value) | Specifies the zero-based index of the first character of a text selection in the RichEdit control. |
setTargetDevice(int hdc, int nLineWidth) | Sets the target device and line width used for WYSIWYG (what you see is what you get) formatting in a RichEdit control. |
Constructs a RichEdit control.
Topic under construction.
Topic under construction.
Returns true, if the control is read-only; Otherwise, returns false.
Retrieves a boolean value that indicates whether this control is read-only.
Returns the currently selected text, if text is selected; Otherwise, returns null.
Retrieves the currently selected text, and returns it in a String object.
Returns the zero-based index of the last character in the selection
Retrieves the zero-based index of the last character in the current selection.
Retrieves the zero-based index of the first character in the current selection.
Selects the text within the specified range.
Selects all characters in the RichEdit control.
Topic under construction.
Specifies whether the RichEdit control is read-only.
Replaces the currently selected text with the specified text.
Specifies the zero-based index of the last character of a text selection in the RichEdit control.
Specifies the zero-based index of the first character of a text selection in the RichEdit control.
Sets the target device and line width used for WYSIWYG (what you see is what you get) formatting in a RichEdit control.