?? vba09-01.txt
字號:
Public Sub MakeLayerVisible()
Dim pMxDocument As IMxDocument
Dim pMap As IMap
Dim pFeatureLayer As IFeatureLayer
Dim pActiveView As IActiveView
Dim pContentsView As IContentsView
' Access the first feature layer on the map
Set pMxDocument = ThisDocument
Set pMap = pMxDocument.FocusMap
Set pFeatureLayer = pMap.Layer(0)
' If the feature layer is not visible,
' then make it visible.
If Not pFeatureLayer.Visible Then
pFeatureLayer.Visible = True
End If
' Refresh the map.
Set pActiveView = pMap
pActiveView.Refresh
' Refresh the table of contents.
Set pContentsView = pMxDocument. _
CurrentContentsView
pContentsView.Refresh pFeatureLayer
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -