ArcMap のレイヤー プロパティを表示

'http://support.esri.com/es/knowledgebase/techarticles/detail/17082

Sub showLayerProperty()
    '最上位レイヤーを取得
    Dim mxDocument As IMxDocument
    Set mxDocument = ThisDocument
    
    Dim layer As ILayer
    Set layer = mxDocument.FocusMap.layer(0)
    
    Dim sheet As IComPropertySheet
    Set sheet = New ComPropertySheet
    sheet.Title = "カスタム レイヤー プロパティ"
    
    Dim propertySet As ISet
    Set propertySet = New esriSystem.Set
    Call propertySet.Add(layer)

    'すべてのプロパティ タブを表示する場合
'    sheet.ActivePage = 4
'    sheet.EditProperties propertySet, 0
    
    sheet.AddCategoryID New UID
    sheet.AddPage New FeatureLayerDisplayPropertyPage   ' 表示
    sheet.AddPage New LayerDrawingPropertyPage          ' シンボル
    sheet.EditProperties propertySet, 0

End Sub