public void SetSegmentSymbolOptions( SegmentSymbolOptions segmentSymbol )
Public Sub SetSegmentSymbolOptions( _ ByVal segmentSymbol As SegmentSymbolOptions _ )
Parameters
- segmentSymbol
- The new segment symbol
public void SetSegmentSymbolOptions( SegmentSymbolOptions segmentSymbol )
Public Sub SetSegmentSymbolOptions( _ ByVal segmentSymbol As SegmentSymbolOptions _ )
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
System.ArgumentException | Symbol options are not valid. See CanSetSegmentSymbolOptions for details on option settings. |
//var options = ApplicationOptions.EditingOptions; QueuedTask.Run(() => { //change the segment symbol primary color to green and //width to 1 pt var segSymbol = options.GetSegmentSymbolOptions(); segSymbol.PrimaryColor = ColorFactory.Instance.GreenRGB; segSymbol.Width = 1; //Are these valid? if (options.CanSetSegmentSymbolOptions(segSymbol)) { //apply them options.SetSegmentSymbolOptions(segSymbol); } });
//var options = ApplicationOptions.EditingOptions; QueuedTask.Run(() => { var def_seg = options.GetDefaultSegmentSymbolOptions(); options.SetSegmentSymbolOptions(def_seg); });
Target Platforms: Windows 11, Windows 10