TCustomSRVEdit

<< Click to display table of contents >>

TCustomSRVEdit

TSRVEditControl is the base class for plain-text edit controls.

Unit SRVCustomEdit;

Syntax

TCustomSRVEdit = class(TSRVEditControl);

Hierarchy

TObject

TPersistent

TComponent

TControl

TWinControl

TSRVWinControl

TSRVEditControl

Properties and events

Public properties

Property

Type

Default value

Meaning

Alignment

TAlignment

taLeftJustify

Horizontal text alignment (left/right/center). RTL BiDiMode inverts left and right alignments.

readonly CanUndo

Boolean

 

Read-only. Indicates whether the edit control contains changes that can be backed out.

Modified

Boolean

 

Indicates whether the user edited the text of the edit control.

ReadOnly

Boolean

False

Determines whether the user can change the text of the edit control.

SelText

TRVUnicodeString

 

Specifies the selected portion of the edit control's text.

Transparent

Boolean

False

Indicates whether the background is transparent. This property works only for editors inserted in TSRichViewEdit.

See also properties inherited from TSRVWinControl.

Methods

Method

Description

Clear

Deletes all text from the edit control.

ClearSelection

Removes the selected text from the edit control.

ClearUndo

Clears the undo buffer so that no changes to the text can be backed out.

CopyToClipboard

Copies the selected text in the edit control to the Clipboard in CF_UNICODETEXT format.

CutToClipboard

Copies the selected text to the Clipboard in CF_UNICODETEXT format and then deletes the selection.

PasteFromClipboard

Pastes the contents of the Clipboard into edit control, replacing the current selection.

Undo

Backs out all changes in the undo buffer.

See also methods inherited from TSRVWinControl.

Inherited components

SRVEdit TSRVEdit

srvmemo TSRVMemo