EditPasteAttrib Method

Build 1501 on 14/Nov/2017  This topic last edited on: 23/Mar/2016, at 12:14

Description

Pastes drawing properties between objects.

Syntax

Page.EditPasteAttrib (iOptions)

iOptions

Define which attribute should be copied, using bit-field schema: bit 0 = copy "rule"; bit 1 = copy "fill"; bit 2 = copy "opacity"; bit 3 = copy "dynamic engrave"; bit 4 = copy "shape".

0 - show dialog box

1 - copy border color

2 - copy fill color

4 - copy opacity

8 - copy runaround

16 - copy shape

31 - copy all

If zero,  a dialog box is shown to select what to copy, automatically selecting what is available.

Remarks

Select the source object and copy it to clipboard by CTRL-C or similar. Then, select target objects and run the EditPasteAttrib command.

Properties are copied only if targets support any of them (ie: no fill attributes copied into a rule). If a source attribute is not present, but pasted, the default attribute values are used.

The method returns False for success.

Examples

Page.EditPasteAttrib (1+2) -> copy rule and fill attributes

Page.EditPasteAttrib (16) -> copy shape (and hot-spot) only

Page.EditPasteAttrib (31) -> copy all attributes

Page.EditPasteAttrib (0) -> display dialog box to select what to copy

Context

Page designer

See also

EditPaste, EditPasteEx

All object creation related commands

AddBoxEx, AddElliEx, AddHRuleEx, AddImageEx, AddLibObj, AddLibObjId, AddVRuleEx, ArticleNewPicture

EditPaste, EditPasteAttrib, EditPasteEx, ImgInsert, ImgInsertType, ObjDuplicate