Public Function GetVertexSymbolOptions( _ ByVal symbolType As VertexSymbolType _ ) As VertexSymbolOptions
public VertexSymbolOptions GetVertexSymbolOptions( VertexSymbolType symbolType )
Parameters
- symbolType
- The type of vertex symbol to obtain.
Public Function GetVertexSymbolOptions( _ ByVal symbolType As VertexSymbolType _ ) As VertexSymbolOptions
public VertexSymbolOptions GetVertexSymbolOptions( VertexSymbolType symbolType )
| Exception | Description |
|---|---|
| ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
{
var options = ApplicationOptions.EditingOptions;
await QueuedTask.Run(() =>
{
//There are 4 vertex symbol settings - selected, unselected and the
//current vertex selected and unselected.
var reg_select = options.GetVertexSymbolOptions(VertexSymbolType.RegularSelected);
var reg_unsel = options.GetVertexSymbolOptions(VertexSymbolType.RegularUnselected);
var curr_sel = options.GetVertexSymbolOptions(VertexSymbolType.CurrentSelected);
var curr_unsel = options.GetVertexSymbolOptions(VertexSymbolType.CurrentUnselected);
//to convert the options to a symbol use
//GetPointSymbol
var reg_sel_pt_symbol = reg_select.GetPointSymbol();
//ditto for reg_unsel, curr_sel, curr_unsel
});
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)