I have following code in my ArcObjects application to draw TextSymbols in Page layout. Now I am looking to implement the same in Layouts in Pro.
IActiveView activeView = myPageLayout as IActiveView;
SimpleMarkerSymbol txtSymbol = Symbology.CreateTextSymbol(Colors.Black, strFontName, decFontSize, esriTextHorizontalAlignment.esriTHACenter, esriTextVerticalAlignment.esriTVATop)
ESRI.ArcGIS.Display.IScreenDisplay sDisplay = activeView.ScreenDisplay;
ScreenDisplay.StartDrawing(sDisplay.hDC, (System.Int16)ESRI.ArcGIS.Display.esriScreenCache.esriNoScreenCache);
txtSymbol.GetTextSize(sDisplay.hDC, aoTransformation, strText, w, h);
ScreenDisplay.FinishDrawing();
How can this be done using C# ArcGIS Pro SDK ?
Solved! Go to Solution.
Hi
Here is the wiki page in the Pro SDK Documentation Repo that has a bunch of Layout SDK snippets.
Thanks
Uma
Hi
Here is the wiki page in the Pro SDK Documentation Repo that has a bunch of Layout SDK snippets.
Thanks
Uma