Method GetDefaultConstructionTool
GetDefaultConstructionTool(long)
Returns the template's construction tool or a determined default.
Declaration
public GeometryConstructionTool? GetDefaultConstructionTool(long layerId)
Parameters
| Type | Name | Description |
|---|---|---|
| long | layerId | An ID that identifies the layer for which a default construction tool is requested. |
Returns
| Type | Description |
|---|---|
| GeometryConstructionTool | The default construction tool if one can be determined; otherwise, |
Remarks
In the absence of a default construction tool for this template, the geometry type of the specified layer
is used to determine a default construction tool, provided this layer is loaded and is one of the
LayerIds.
A null value is expected when:
- the template is used to create a non-spatial related record
-
the default construction tool is
null, and the layer's geometry type is unknown
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | The specified |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |