|
| ESRI.ArcGIS.ADF.IMS | |
| Geometry Property | |
| See Also Example | |
| ESRI.ArcGIS.ADF.IMS.Carto.Layer Namespace > Filter Class : Geometry Property |
| Visual Basic (Declaration) | |
|---|---|
Public Property Geometry As Geometry | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public Geometry Geometry {get; set;} | |
The following example creates a new Filter and a new Point object, and assigns the
point as the Geometry of the Filter. For another example of using geometry in a
filter, see FeatureLayer.Query(QueryParameters) .
| C# | Copy Code |
|---|---|
Filter queryFilter = new Filter(); | |
| Visual Basic | Copy Code |
|---|---|
Dim queryFilter As New Filter() | |
The Geometry of a Filter enables selecting features with a specific geometric shape.
The following types in ESRI.ArcGIS.ADF.IMS.Geometry are acceptable for the Geometry property:
Using Point or Multipoint to select on a point or line map layer will return no results, unless at least a small Tolerance is added around the point(s). Similarly, a Polyline used for selecting on a line map layer will return no results unless a Tolerance is used.