Click or drag to resize

GeometryBuilderTIsSketchValid Property

Gets a flag indicating if this builder contains sufficient points to show a valid graphical sketch.

Namespace:  Esri.ArcGISRuntime.Geometry
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.9.0
Syntax
public virtual bool IsSketchValid { get; }

Property Value

Type: Boolean
Remarks

This can be used as an initial lightweight check to see if the current state of a builder will produce a non-empty geometry; for example, it may be used to enable or disable functionality in an editing user interface. The exact requirements vary depending on the type of geometry produced by the builder:

Note that this is not equivalent to topological simplicity, which is enforced by Simplify(Geometry) and checked using IsSimple(Geometry). Geometries must be topologically simple to be successfully saved in a geodatabase, or used in some service operations.

Does not check the SpatialReference. Will return false if an error occurs.

Prior to v100.8, only one part of a multipart polygon or polyline was required to have the minimum number (2 for a polyline, 3 for a polygon) of points.

See Also