RichEdit

 

Contents

Name

RichEdit

Remark

A “rich edit control” is a window in which the user can enter and edit text. The text can be assigned character and paragraph formatting. RichEdit class provides methods to format text.

Hierarchy

Examples

header to Include

Control.h

Reference

Members

Name Brief Example
AutoComplete Auto complete options in the string array in a box to pick from
Copy
GetDefaultCharFormat Retrieves the current default character formatting attributes in this RichEdit control. Examples
GetFirstVisibleLine Determines the topmost visible line in this RichEdit control. Examples
GetLimitText Gets the limit on the amount of text a user can enter into this RichEdit control. Examples
GetLineCount Retrieves the number of lines in this RichEdit control. Examples
GetLine Get the line of text at specified line index Examples
GetModify Determines if the contents of this RichEdit control have changed since the last save. Examples
GetSelText Gets the text of the current selection in this RichEdit control Examples
GetSelectionCharFormat Retrieves the character formatting attributes in the current selection in this RichEdit control. Examples
GetSel Gets the starting and ending positions of the current selection in this RichEdit control. Examples
LimitText Limits the amount of text a user can enter into the RichEdit control. Examples
LineFromChar Get line number from character index Examples
LineIndex Get index of first character in a line Examples
LineLength Retrieves the length of a given line in this RichEdit control. Examples
LineScroll Scrolls the text in this RichEdit control. Examples
Load Loads text from a text file
Paste
Print
ReplaceSel Replaces the current selection in this RichEdit control with specified text. Examples
Reset Resets controls text to empty string
RichEdit
Save Saves text into a text file
SetDefaultCharFormat Sets the current default character formatting attributes in this RichEdit control. Examples
SetModify Sets or clears the modification flag for this RichEdit control. Examples
SetReadOnly Sets the read-only option for this RichEdit control Examples
SetSelectionCharFormat Sets the character formatting attributes in the current selection in this RichEdit control. Examples
SetSel Sets the selection in this RichEdit control. Examples
SetTextBkColor
SetTextColor Set text color in this RichEdit control. Examples
WriteLine Writes one line at the end of the text
Write Writes the string at the end of the text