📄 vba15-3.txt
字号:
Public Sub OpenMapInsetWindow()
' Create a magnification window
' and set its zoom factor to 500%.
Dim pDataWindowFactory As IDataWindowFactory
Dim pMapInsetWindow As IMapInsetWindow
Dim pMapInset As IMapInset
Set pDataWindowFactory = New MapInsetWindowFactory
If Not pDataWindowFactory.CanCreate(Application) Then
MsgBox "Unable to create magnification window."
Exit Sub
End If
Set pMapInsetWindow = pDataWindowFactory. _
Create(Application)
pMapInsetWindow.Show True
Set pMapInset = pMapInsetWindow.MapInset
pMapInset.ZoomPercent = 500
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -