Previous Document Next Document
Document.ActiveShape

Property ActiveShape As Shape

Member of Document

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

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

The ActiveShape property returns a read-only value.

The following code 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 2007 Corel Corporation. All rights reserved.