ct78

IContentsView3 problem with ArcObjects 10

Discussion created by ct78 on Jan 4, 2012
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 ...

Outcomes