'VBA code to determine if the current element is a CircleElement:
Dim pDoc As IMxDocument, pPageLayout As IPageLayout
Dim pContainer As IGraphicsContainer, pElement As IElement
Set pDoc = ThisDocument
Set pPageLayout = pDoc.PageLayout
Set pContainer = pPageLayout
pContainer.Reset
Set pElement = pContainer.Next
While Not pElement Is Nothing
If TypeOf pElement Is ICircleElement Then
MsgBox "This is a CircleElement"
End If
Set pElement = pContainer.Next
Wend[Visual Basic .NET, C#, C++]
No example is available for Visual Basic .NET, C#, or C++. To view a Visual Basic 6.0 example, click the Language Filter button
in the upper-left corner of the page.