VBA code for obtaining a MapSurroundFrame object:
[Visual Basic 6.0]
Dim pDoc As IMxDocument, pPageLayout As IPageLayout
Dim pCont As IGraphicsContainer, pElement As IElement
Set pDoc = ThisDocument
Set pPageLayout = pDoc.PageLayout
Set pCont = pPageLayout
pCont.Reset
Set pElement = pCont.Next
If TypeOf pElement Is IMapSurroundFrame Then
Dim pSurroundFrame As IMapSurroundFrame
Set pSurroundFrame = pElement
End If
[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.