CopyToClipboard Method

As it applies to the IMiSelectableImage object.

Copies the user's selection in the viewer control to the clipboard as an image.

expression.CopyToClipboard(CopyAnnotation, AlwaysKeepAnnotationColor)

*expression   * Required. An expression that returns an IMiSelectableImage object.

CopyAnnotation    Optional Long. Specifies whether to copy annotations. 1 = True, 0 = False. Default is 1 (True).

AlwaysKeepAnnotationColor    Optional Long. Specifies whether to retain the color of annotations when copying them. 1 = True, 0 = False. No default value; equivalent to False.

Remarks

You can retrieve the user's selection in the viewer control as text (using the TextSelection property, which returns an IMiSelectableItem object) or as an image (using the ImageSelection property, which returns an IMiSelectableImage object). Use the CopyToClipboard method of the IMiSelectableImage object to copy the user's selection in the viewer control to the clipboard as an image.

As it applies to the IMiSelectableItem object.

Copies the user's selection in the viewer control to the clipboard as text.

expression.CopyToClipboard()

*expression   * Required. An expression that returns an IMiSelectableItem object.

Remarks

You can retrieve the user's selection in the viewer control as text (using the TextSelection property, which returns an IMiSelectableItem object) or as an image (using the ImageSelection property, which returns an IMiSelectableImage object). Use the CopyToClipboard method of the IMiSelectableItem object to copy the user's selection in the viewer control to the clipboard as text.

Example

As it applies to the IMiSelectableImage object.

The following example copies the user's selection in the viewer control to the clipboard as an image, without including any annotations.

MiDocView1.ImageSelection.CopyToClipboard 0

As it applies to the IMiSelectableItem object.

The following example copies the user's selection in the viewer control to the clipboard as text.

MiDocView1.TextSelection.CopyToClipboard

Applies to | IMiSelectableImage Object | IMiSelectableItem Object