ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Core Namespace / EditingOptions Class / GetDefaultVertexSymbolOptions Method
The type of vertex symbol to obtain.
Example

In This Topic
    GetDefaultVertexSymbolOptions Method
    In This Topic
    Gets the default symbol information for a vertex while sketching. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Function GetDefaultVertexSymbolOptions( _
       ByVal symbolType As VertexSymbolType _
    ) As VertexSymbolOptions
    public VertexSymbolOptions GetDefaultVertexSymbolOptions( 
       VertexSymbolType symbolType
    )

    Parameters

    symbolType
    The type of vertex symbol to obtain.

    Return Value

    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Example
    Set Sketch Vertex Symbol Back to Default
    {
      var options = ApplicationOptions.EditingOptions;
      //var options = ApplicationOptions.EditingOptions;
      await QueuedTask.Run(() =>
      {
        //ditto for reg selected and current selected, unselected
        var def_reg_unsel =
          options.GetDefaultVertexSymbolOptions(VertexSymbolType.RegularUnselected);
        //apply default
        options.SetVertexSymbolOptions(
          VertexSymbolType.RegularUnselected, def_reg_unsel);
      });
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also