ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Editing Namespace / ToolOptionsEmbeddableControl Class / GetToolOption<T> Method
the type of the value to be obtained; normally this will be a nullable type in order to accommodate the possibility of multiple different values
the key that identifies the tool option
a value to be returned if the key is not present within the current ToolOptions
an optional value to be returned when multiple (different) values are present - this can only happen in the case of multiple selected templates in TemplateProperties

In This Topic
    GetToolOption<T> Method
    In This Topic
    gets a tool option from the current ToolOptions
    Syntax
    protected T GetToolOption<T>( 
       string key,
       T defaultValue,
       T differentValue
    )
    Protected Function GetToolOption(Of T)( _
       ByVal key As String, _
       ByVal defaultValue As T, _
       Optional ByVal differentValue As T _
    ) As T

    Parameters

    key
    the key that identifies the tool option
    defaultValue
    a value to be returned if the key is not present within the current ToolOptions
    differentValue
    an optional value to be returned when multiple (different) values are present - this can only happen in the case of multiple selected templates in TemplateProperties

    Type Parameters

    T
    the type of the value to be obtained; normally this will be a nullable type in order to accommodate the possibility of multiple different values

    Return Value

    the value found, or defaultValue, or differentValue
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also