ArcMap Addins如何弹出指北针属性界面?

ArcMap Addins如何弹出指北针属性界面?
已邀请:

刘峥 - ArcGIS多面手

赞同来自:

【解决办法】:

IComPropertySheet pComPropertySheet = new ComPropertySheetClass(); 
pComPropertySheet.Title = NorthArrow; 

IPropertyPage northArrowPage = new NorthArrowElementPropertyPageClass(); 
pComPropertySheet.ClearCategoryIDs(); 
pComPropertySheet.AddPage(northArrowPage); 
IMxDocument mxdoc = ArcMap.Document as IMxDocument; 
IPageLayout pageLayout = mxdoc.PageLayout; 
IGraphicsContainer container = pageLayout as IGraphicsContainer; 
container.Reset(); 
IElement element = container.Next(); 
while (element != null) 

if (element is IMapSurroundFrame) 
break; 
element = container.Next(); 

if(element == null) 

MessageBox.Show(element is null); 
return; 


ISet pmyset = new SetClass(); 
pmyset.Add(mxdoc.ActiveView); 
pmyset.Add(element); 

if (pComPropertySheet.CanEdit(pmyset)) 
pComPropertySheet.EditProperties(pmyset, ArcMap.Application.hWnd);

要回复问题请先登录注册