?? vba14-5.txt
字號:
Private Sub LabelLayer(pFeatureLayer As IFeatureLayer, _
blnLabel As Boolean)
' Label a layer by turining on
' the label property.
Dim pGeoFeatureLayer As IGeoFeatureLayer
Dim pMxDocument As IMxDocument
Dim pMap As IMap
Dim pActiveView As IActiveView
Set pMxDocument = Application.Document
Set pMap = pMxDocument.FocusMap
Set pActiveView = pMap
' Turn on or off the layer's labeling.
Set pGeoFeatureLayer = pFeatureLayer
pGeoFeatureLayer.DisplayField = "NAME"
pGeoFeatureLayer.DisplayAnnotation = blnLabel
pActiveView.Refresh
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -