public enum ExtentFitType : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Public Enum ExtentFitType Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
public enum ExtentFitType : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Public Enum ExtentFitType Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
Member | Description |
---|---|
BestFit | Best fit. |
DataDriven | Data driven. |
ExtentCenter | Center the extent. |
// This example create a new spatial map series and then applies it to the active layout. This will automatically // overwrite an existing map series if one is already present. //Reference map frame and index layer MapFrame mf = layout.FindElement("Map Frame") as MapFrame; Map m = mf.Map; BasicFeatureLayer indexLyr = m.FindLayers("Countries").FirstOrDefault() as BasicFeatureLayer; //Construct map series on worker thread await QueuedTask.Run(() => { //SpatialMapSeries constructor - required parameters SpatialMapSeries SMS = MapSeries.CreateSpatialMapSeries(layout, mf, indexLyr, "Name"); //Set optional, non-default values SMS.CategoryField = "Continent"; SMS.SortField = "Population"; SMS.ExtentOptions = ExtentFitType.BestFit; SMS.MarginType = ArcGIS.Core.CIM.UnitType.PageUnits; SMS.MarginUnits = ArcGIS.Core.Geometry.LinearUnit.Centimeters; SMS.Margin = 1; SMS.ScaleRounding = 1000; layout.SetMapSeries(SMS); //Overwrite existing map series. });
System.Object
System.ValueType
System.Enum
ArcGIS.Core.CIM.ExtentFitType
Target Platforms: Windows 11, Windows 10