Property IsSketchValid
IsSketchValid
Gets a value indicating whether this builder contains sufficient points to show a valid graphical sketch.
Declaration
public virtual bool IsSketchValid { get; }
Property Value
Type | Description |
---|---|
Boolean | A value indicating whether this builder contains sufficient points to show a valid graphical sketch. |
Remarks
This can be used as an initial lightweight check to see if the current state of a builder produces 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:
-
A Map
Point must contain non-NaN x,y coordinates.Builder -
A Multipoint
Builder must contain at least one valid MapPoint . -
A Polyline
Builder must contain at least one Part. Each Part it contains must have: at least two valid points, or at least one Segment where IsCurve is true. -
A Polygon
Builder must contain at least one Part. Each Part it contains must have: at least three valid points, or at least one Segment where IsCurve is true. -
Envelope
Builder must contain non-NaN minimum and maximum x and y values.
Note that this is not equivalent to topological simplicity, which is enforced by
Simplify(Geometry) and checked using
Is
Does not check the Spatial
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, and only
Line
Prior to v100.12, a Polygon
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |