public abstract class MapSurroundInfo
Public MustInherit Class MapSurroundInfo
public abstract class MapSurroundInfo
Public MustInherit Class MapSurroundInfo
//Create a table frame. //Construct on the worker thread await QueuedTask.Run(() => { //Build 2D envelope geometry Coordinate2D rec_ll = new Coordinate2D(1.0, 3.5); Coordinate2D rec_ur = new Coordinate2D(7.5, 4.5); //At 2.x - Envelope rec_env = EnvelopeBuilder.CreateEnvelope(rec_ll, rec_ur); Envelope rec_env = EnvelopeBuilderEx.CreateEnvelope(rec_ll, rec_ur); //Reference map frame and layer MapFrame mf = layout.FindElement("Map Frame") as MapFrame; FeatureLayer lyr = mf.Map.FindLayers("GreatLakes").First() as FeatureLayer; //Build fields list var fields = new[] { "NAME", "Shape_Area", "Shape_Length" }; //Construct the table frame //At 2.x - TableFrame tabFrame = LayoutElementFactory.Instance.CreateTableFrame( // layout, rec_env, mf, lyr, fields); var tableFrameInfo = new TableFrameInfo() { FieldNames = fields, MapFrameName = mf.Name, MapMemberUri = lyr.URI }; var tabFrame = ElementFactory.Instance.CreateMapSurroundElement( layout, rec_env, tableFrameInfo) as TableFrame; });
System.Object
ArcGIS.Desktop.Layouts.MapSurroundInfo
ArcGIS.Desktop.Layouts.ChartFrameInfo
ArcGIS.Desktop.Layouts.ElevationGuideBarInfo
ArcGIS.Desktop.Layouts.LegendInfo
ArcGIS.Desktop.Layouts.MeterReferenceGuideInfo
ArcGIS.Desktop.Layouts.NorthArrowInfo
ArcGIS.Desktop.Layouts.ProfileFrameInfo
ArcGIS.Desktop.Layouts.ScaleBarInfo
ArcGIS.Desktop.Layouts.SlopeGuideInfo
ArcGIS.Desktop.Layouts.TableFrameInfo
Target Platforms: Windows 11, Windows 10, Windows 8.1