FMX.Memo.Style.TEditActionStack.FragmentInserted

De RAD Studio API Documentation
Aller à : navigation, rechercher

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

Propriétés

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


Description

Mémorise les paramètres d'une opération d'insertion.

Utilisez FragmentInserted pour pouvoir annuler une opération d'insertion.

FragmentInserted crée et ajoute à la pile d'actions un objet Style.TEditAction initialisé désignant une opération d'insertion. StartPos représente la position du premier caractère du texte inséré, alors que FragmentLength représente la taille (en octets) du texte inséré dans le contrôle mémo. IsPairedWithPrev spécifie si le texte actuellement inséré sera annulé avec le texte préalablement inséré.

Remarque : La tentative d'insérer un fragment de texte qui commence à la fin du fragment de texte préalablement inséré entraîne l'extension du fragment de texte préalablement inséré.

Voir aussi