CanSetSegmentSymbolOptions Method
Determines if the segment sketch symbol can be set.
Parameters
- segmentSymbol
- The segment symbol
Return Value
True if the segment symbol options are valid. False otherwise.
Set Sketch Segment Symbol Options
//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);
}
});
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.