Class TrRichEdit
Unit
rImprovedComps
Declaration
type TrRichEdit = class(TRichEdit)
Description
enhanced TRichEdit with internal Popup menu, extended formatting, search function and support for drawing to Canvas
Hierarchy
Overview
Methods
Properties
|
property NumberingEx: integer read GetNumberingEx write SetNumberingEx; |
|
property RtfText: string read GetRtfText write SetRtfText; |
|
property SupportURLLink: Boolean read FSupportURLLink write SetSupportURLLink default false; |
Description
Methods
|
procedure CalculateTextHeight(var R: TRect); |
keep Rect width and set Rect height according to the RTF content
|
|
procedure DrawToCanvas(R: TRect; OffsetX, OffsetY: integer; ACanvas: TCanvas; ShowEllipsis: Boolean = true); |
draw RTF content to the canvas
|
|
procedure AddSelectText(AText: string); |
add text to the end and select it
|
|
procedure InsertSelectText(AText: string; ReplaceSelected: Boolean = false; BeforeSelected: Boolean = false); |
insert text to the current position and select it (can replace current selection, insert before of after)
|
|
procedure SwitchFontStyle(AStyle: TFontStyle); |
switch on/off font style for selection
|
|
function IncreaseFontSize(Step: integer = 0): Boolean; |
increase font size
|
|
function DecreaseFontSize(Step: integer = 0): Boolean; |
decrease font size
|
|
function SelectFont: Boolean; |
open font selection dialog
|
|
function IncreaseIndent(Step: integer = 10): Boolean; |
increase left indent
|
|
function DecreaseIndent(Step: integer = 10): Boolean; |
decrease left indent
|
|
function SwitchBulletPoints: Boolean; |
switch on/off bullet point numbering
|
|
function SwitchBulletNumbers: Boolean; |
switch on/off number numbering
|
|
function SwitchBulletLetters: Boolean; |
switch on/off letter numbering
|
|
function SearchText(const Search: string = ''; FromStart: Boolean = true; IgnoreCase: Boolean = true): Boolean; |
search and select text if found
|
|
function SearchNext: Boolean; |
search and select next text occurrence
|
Properties
|
property NumberingEx: integer read GetNumberingEx write SetNumberingEx; |
get or set numbering style
|
|
property RtfText: string read GetRtfText write SetRtfText; |
set or get content as rtf format
|
|
property SupportURLLink: Boolean read FSupportURLLink write SetSupportURLLink default false; |
|
Generated by PasDoc 0.15.0.
|