FMX.Memo.Style.TEditActionStack.FragmentInserted

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure FragmentInserted(const StartPos, FragmentLength: Integer; const PairedWithPrev, Typed: Boolean);

C++

void __fastcall FragmentInserted(const int StartPos, const int FragmentLength, const bool PairedWithPrev, const bool Typed);

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.Memo.Style.pas
FMX.Memo.Style.hpp
FMX.Memo.Style TEditActionStack

Description

Remembers the parameters of an insert operation.

Use FragmentInserted to be able to back down an insert operation.

FragmentInserted creates and adds to the action stack an initialized Style.TEditAction object that denotes an insert operation. StartPos represents the position of the first character of the inserted text and FragmentLength represents the size (in bytes) of the text inserted into the memo control. IsPairedWithPrev specifies whether the currently inserted text will be backed down along with the previously inserted one.

Note: Trying to insert a fragment of text that begins at the end of the previously inserted fragment of text will result in extending the previously inserted fragment of text.

See Also