public void SetDefinition( CIMMapSeries cimMapSeries )
Public Sub SetDefinition( _ ByVal cimMapSeries As CIMMapSeries _ )
Parameters
- cimMapSeries
public void SetDefinition( CIMMapSeries cimMapSeries )
Public Sub SetDefinition( _ ByVal cimMapSeries As CIMMapSeries _ )
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
//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); });
Target Platforms: Windows 11, Windows 10