ArcCatalog のプレビュー タブ内のマップを拡大

Public Sub ZoomIn()

    Dim pGxApplication As IGxApplication
    Set pGxApplication = Application
    
    If Not TypeOf pGxApplication.View Is IGxPreview Then Exit Sub
    
    Dim pPreview As IGxPreview
    Set pPreview = pApp.View
    
    If Not TypeOf pPreview.View Is IGxGeographicView Then Exit Sub
    
    Dim pGeoView As IGxGeographicView
    Set pGeoView = pPreview.View
    
    Dim pActiveView As IActiveView
    Set pActiveView = pGeoView.Map
    
    Dim pExtent As IEnvelope
    Set pExtent = pActiveView.Extent
    pExtent.Expand 0.75, 0.75, True
    pActiveView.Extent = pExtent
    pActiveView.Refresh
  
End Sub