Select to view content in your preferred language

IContentsView3 problem with ArcObjects 10

1999
0
01-04-2012 08:30 AM
CarlTremblay
Emerging Contributor
Hi everyone,
                 I got a problem with ArcObjects 10 when I use IContentsView3 Interface.
When I want to add the Contenview to the ContentsViewEdit, I got a System.NotImplementedException.

  Dim ContentsView As ESRI.ArcGIS.ArcMapUI.IContentsView3
                ContentsView = CType(New ESRI.ArcGIS.ArcMapUI.TOCDisplayView, ESRI.ArcGIS.ArcMapUI.IContentsView)

   Dim ContentsViewEdit As ESRI.ArcGIS.ArcMapUI.IContentsViewEdit
                ContentsViewEdit = DirectCast(EsriLib.ArcObjects.IU.ArcMap.EnvironnementArcMap.Instance.Application.Document, ESRI.ArcGIS.ArcMapUI.IContentsViewEdit)
                ContentsView = New Localisation

                ContentsViewEdit.AddContentsView(ContentsView)

Someone has an idea please ?

Thank you verry much ...
0 Kudos
0 Replies