Property

Method

Event

 

 

OnEditImage

Invoked before the Image Properties dialog box is opened to edit the inserted image.

Syntax

    void OnEditImage(
    BSTR id,
    BSTR alt,
    BSTR src,
    BSTR name,
    BSTR lowsrc,
    long width,
    long height,
    BSTR href,
    BSTR target,
    BSTR name,
    long align,
    long border,
    long hspace,
    long vspace,
    VARIANT* finished
    );

Parameters

id

[in] ID defined by CSS. Used only in special cases.

alt

[in] Alt text of the image.

src

[in] Absolute path of the image.

name

[in] Filename of the image.

lowsrc

[in] Absolute path of the low resolution image.

width

[in] Width of the image.

height

[in] Height of the image.

href

[in] URL of the hyperlink.

target

[in] Target frame of the hyperlink.

name

[in] Name of the link connected to the image

align

[in] Alignment of the image (0-8).

0

 Top

1

 Middle

2

 Baseline (Default)

3

 Bottom

4

 Left

5

 Right

6

 Top of Text

7

 Absolute Middle

8

 Absolute Bottom

border

[in] Width of the border.

hspace

[in] Horizontal spacing.

vspace

[in] Vertical spacing.

finished

[in, out] Whether to execute the command.

0

Executes the command.

others

Doesn't execute the command.

Return Values

0 (always)

Sample Codes

VBScript

sub wec_OnEditImage(id, alt, src, name, lowsrc, width, height, href, 
href_target, href_name, align, border, hspace, vspace, finished)
        msgbox id + ", " + alt + ", " + src + ", " + name + ",
" + lowsrc + ", " + href + ", " + href_target + ", " + href_name + "."
        finished = false
end sub