Object Model Reference : Classes : D : Document : Properties : Document.ActiveShape |
Property ActiveShape As Shape
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.
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 |
Copyright 2013 Corel Corporation. All rights reserved.