public IEnumerator <Map> GetEnumerator() { return(MapSeries.GetEnumerator()); }
public MapFilterControl(object parent) { Parent = parent as SearchControl; HideContentCMD = new RelayCommand(HideContent); MapSeriesSource = MapSeries.Load(); }
async public static void MethodSnippets() { #region MapSeries_Constructor1 //Set up map series export options MapSeriesExportOptions MSExport_SinglePage = new MapSeriesExportOptions() { ExportPages = ExportPages.Custom, //Provide a specific list of pages CustomPages = "1-3, 5", //Only used if ExportPages.Custom is set ExportFileOptions = ExportFileOptions.ExportAsSinglePDF, //Export all pages to a single, multi-page PDF ShowSelectedSymbology = false //Do no show selection symbology in the output }; #endregion MapSeries_Constructor1 #region MapSeries_Constructor2 //Set up map series export options MapSeriesExportOptions MSExport_IndivPages = new MapSeriesExportOptions() { ExportPages = ExportPages.All, //All pages ExportFileOptions = ExportFileOptions.ExportMultipleNames, //Export each page to an individual file using page name as a suffix. ShowSelectedSymbology = true //Include selection symbology in the output }; #endregion MapSeries_Constructor2 #region MapSeries_FindPageNumber //Return the page number that corresponds to the page name field for an index feature Layout layout = LayoutView.Active.Layout; //Perform on the worker thread await QueuedTask.Run(() => { SpatialMapSeries SMS = layout.MapSeries as SpatialMapSeries; Row msRow = SMS.CurrentRow; System.Windows.MessageBox.Show(SMS.FindPageNumber(msRow.GetOriginalValue(msRow.FindField("NAME")).ToString())); }); #endregion MapSeries_FindPageNumber #region MapSeries_GetSetDefinition //Get and modify a map series CIM definition and set the changes back to the layout //Perform on the worker thread await QueuedTask.Run(() => { MapSeries MS = layout.MapSeries as MapSeries; CIMMapSeries CIM_MS = MS.GetDefinition(); CIM_MS.Enabled = false; MS.SetDefinition(CIM_MS); layout.SetMapSeries(MS); }); #endregion MapSeries_GetSetDefinition #region MapSeries_SetCurrentPageNumber //Set the current page to match a specific page number //Perform on the worker thread await QueuedTask.Run(() => { MapSeries MS = layout.MapSeries as MapSeries; MS.SetCurrentPageNumber("IV"); }); #endregion MapSeries_SetCurrentPageNumber }