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 |
|
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 |
| InvalidOperationException | Template is not loaded. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |