Preselect particular column from iTable in layer properties dialog?

631
1
07-12-2012 06:11 AM
JörgPossin
New Contributor III
Hi all!

With the following code it is possible to open the layer properties dialog and the labels tab.

 Dim pContentsView As IContentsView
                pContentsView = m_MxDoc.CurrentContentsView
                pContentsView.ContextItem = pFLayer
                'Display the properties of this layer
                Dim pUID As New UID
                Dim pCmdItem As ICommandItem
                pUID.Value = "esriArcMapUI.LayerContextMenuItems"
                pUID.SubType = 9
                pCmdItem = m_Application.Document.CommandBars.Find(pUID)
                pCmdItem.Execute()


This works well but is it also possible to preselect a particular column from the label field combobox?
0 Kudos
1 Reply
JamesCrandall
MVP Frequent Contributor
Not sure if you can do want you want via that LayerContextMenuItems.  You might have to manipulate the settings through ILabelEngineLayerProperties.  See here for a possible alternative solution:

http://forums.arcgis.com/threads/20019-Set-Expression-to-DisplayField?highlight=set+label+field
0 Kudos