Class TrMemoEx

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TrMemoEx = class(TMemo)

Description

enhanced Memo component which provides highlighting of words in text according list of words or highlighting of text between start and stop tag

Hierarchy

  • TMemo
  • TrMemoEx

Overview

Methods

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

Properties

Published property HighlightWords: TStringList read FHighlightWords write SetHighlightWords;
Published property HighlightWholeWords: boolean read FHighlightWholeWords write SetHighlightWholeWords default false;
Published property HighlightFromStr: string read FHighlightFromStr write SetHighlightFromStr;
Published property HighlightToStr: string read FHighlightToStr write SetHighlightToStr;
Published property HighlightedFontColor: TColor read FHighlightedFontColor write SetHighlightedFontColor default clWindowText;
Published property HighlightedBrushColor: TColor read FHighlightedBrushColor write SetHighlightedBrushColor default clMoneyGreen;
Published property HighlightFromToEx: TStringList read FHighlightFromToEx write SetHighlightFromToEx;
Published property PageBreaksCharNumber: string read FPageBreaksCharNumber write FPageBreaksCharNumber;

Description

Methods

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

Published property HighlightWords: TStringList read FHighlightWords write SetHighlightWords;

list of hightlighted words, font color and background color can be defined in line on 2nd and 3rd place with TAB separator

Published property HighlightWholeWords: boolean read FHighlightWholeWords write SetHighlightWholeWords default false;

define whether only whole words is highlighted

Published property HighlightFromStr: string read FHighlightFromStr write SetHighlightFromStr;

define start tag for hightlighting, text between start and stop tag is highlighted

Published property HighlightToStr: string read FHighlightToStr write SetHighlightToStr;

define stop tag for hightlighting, text between start and stop tag is highlighted

Published property HighlightedFontColor: TColor read FHighlightedFontColor write SetHighlightedFontColor default clWindowText;

define font color of highlighted text

Published property HighlightedBrushColor: TColor read FHighlightedBrushColor write SetHighlightedBrushColor default clMoneyGreen;

define background color of highlighted text

Published property HighlightFromToEx: TStringList read FHighlightFromToEx write SetHighlightFromToEx;

enhanced from-to hightlighting, list of FromStr + ToStr + font color + background color items is defined in line with TAB separator

Published property PageBreaksCharNumber: string read FPageBreaksCharNumber write FPageBreaksCharNumber;

define number of chars used for showing of pagebreaks inside of edit area


Generated by PasDoc 0.13.0 on 2018-03-18 20:50:39