Previous Document Next Document

Object Model Reference : Classes : D : Document : Properties : Document.ActiveShape


Document.ActiveShape

Property ActiveShape As Shape

Description

Member of Document

The ActiveShape property returns the first selected shape in the document.

Unlike the Document.Selection method, ActiveShape returns the actual shape selected, not the selection object.

The ActiveShape property returns a read-only value.

VBA example

The following VBA example applies the Brighten lens to the currently selected shape in the second open document.

Sub Test()
 Documents(2).ActiveShape.CreateLens cdrLensBrighten, 50
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.