Show / Hide Table of Contents

Method IsToolApplicable

IsToolApplicable(GeometryConstructionToolType, long)

Determines whether the specified construction tool is applicable for the specified layer.

Declaration
public bool IsToolApplicable(GeometryConstructionToolType toolType, long layerId)
Parameters
Type Name Description
GeometryConstructionToolType toolType

The type of geometry construction tool to check for applicability.

long layerId

An ID that identifies the layer for which the construction tool is being evaluated.

Returns
Type Description
bool

true if the tool is applicable for the specified layer; otherwise, false.

Remarks

A construction tool is not applicable when it appears in the template's list of excluded tools, which is available only after the template has loaded.

A construction tool may also be deemed not applicable based on the geometry type of the specified layer, provided this layer is loaded and is one of the LayerIds.

Exceptions
Type Condition
ArgumentException

The specified layerId is not one of the LayerIds or is not loaded.

InvalidOperationException

Template is not loaded.

Applies to

Platforms and versions
TargetVersions
.NET300
.NET Windows300
.NET Android300
.NET iOS300
In this article
Provide feedback
Back to top Copyright © 2025 Esri.