picture TrvActionInsertPicture

Properties   Events

Top  Previous  Next

TrvActionInsertPicture is the action for "Insert | Picture" command.

Unit RichViewActions;

Syntax

TrvActionInsertPicture = class(TrvActionCustomIO)

hmtoggle_arrow1Hierarchy

Description

This action inserts a page picture from file in the caret position. Unlike all other file opening actions, this action detects file format by the file extension, not by the file filter index.

The following additional properties can be applied to inserted pictures:

VAlign – the image alignment relative to text;

Spacing – padding (spacing between the image itself and its border);

OuterHSpacing, OuterVSpacing – horizontal and vertical spacing around the image border;

BorderWidth, BorderColor – border width and color;

BackgroundColor – background color;

MaxImageSize – maximal allows size (the image will be stretched if it exceeds this size);

StoreFileNameInItemName allows storing file name with the image (It's not recommended to use this option. The recommended place for storing image file names is rvespImageFileName extra item property. It is assigned if rvoAssignImageFileNames is included in the Options property of the target editor).

You can modify a picture before insertion in OnInserting event.


RichViewActions © trichview.com