Class TrRichEdit

Unit

Declaration

type TrRichEdit = class(TRichEdit)

Description

enhanced TRichEdit with internal Popup menu, extended formatting, search function and support for drawing to Canvas

Hierarchy

  • TRichEdit
  • TrRichEdit

Overview

Methods

Public procedure CalculateTextHeight(var R: TRect);
Public procedure DrawToCanvas(R: TRect; OffsetX, OffsetY: integer; ACanvas: TCanvas; ShowEllipsis: Boolean = true);
Public procedure AddSelectText(AText: string);
Public procedure InsertSelectText(AText: string; ReplaceSelected: Boolean = false; BeforeSelected: Boolean = false);
Public procedure SwitchFontStyle(AStyle: TFontStyle);
Public function IncreaseFontSize(Step: integer = 0): Boolean;
Public function DecreaseFontSize(Step: integer = 0): Boolean;
Public function SelectFont: Boolean;
Public function IncreaseIndent(Step: integer = 10): Boolean;
Public function DecreaseIndent(Step: integer = 10): Boolean;
Public function SwitchBulletPoints: Boolean;
Public function SwitchBulletNumbers: Boolean;
Public function SwitchBulletLetters: Boolean;
Public function SearchText(const Search: string = ''; FromStart: Boolean = true; IgnoreCase: Boolean = true): Boolean;
Public function SearchNext: Boolean;

Properties

Public property NumberingEx: integer read GetNumberingEx write SetNumberingEx;
Public property RtfText: string read GetRtfText write SetRtfText;
Published property SupportURLLink: Boolean read FSupportURLLink write SetSupportURLLink default false;

Description

Methods

Public procedure CalculateTextHeight(var R: TRect);

keep Rect width and set Rect height according to the RTF content

Public procedure DrawToCanvas(R: TRect; OffsetX, OffsetY: integer; ACanvas: TCanvas; ShowEllipsis: Boolean = true);

draw RTF content to the canvas

Public procedure AddSelectText(AText: string);

add text to the end and select it

Public 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)

Public procedure SwitchFontStyle(AStyle: TFontStyle);

switch on/off font style for selection

Public function IncreaseFontSize(Step: integer = 0): Boolean;

increase font size

Public function DecreaseFontSize(Step: integer = 0): Boolean;

decrease font size

Public function SelectFont: Boolean;

open font selection dialog

Public function IncreaseIndent(Step: integer = 10): Boolean;

increase left indent

Public function DecreaseIndent(Step: integer = 10): Boolean;

decrease left indent

Public function SwitchBulletPoints: Boolean;

switch on/off bullet point numbering

Public function SwitchBulletNumbers: Boolean;

switch on/off number numbering

Public function SwitchBulletLetters: Boolean;

switch on/off letter numbering

Public function SearchText(const Search: string = ''; FromStart: Boolean = true; IgnoreCase: Boolean = true): Boolean;

search and select text if found

Public function SearchNext: Boolean;

search and select next text occurrence

Properties

Public property NumberingEx: integer read GetNumberingEx write SetNumberingEx;

get or set numbering style

Public property RtfText: string read GetRtfText write SetRtfText;

set or get content as rtf format

Published property SupportURLLink: Boolean read FSupportURLLink write SetSupportURLLink default false;
 

Generated by PasDoc 0.15.0.