|
| ESRI.ArcGIS.ADF.IMS | |
| Geometry Property | |
| See Also Example Send Feedback | |
| ESRI.ArcGIS.ADF.IMS.Carto.Layer Namespace > Filter Class : Geometry Property |
| Visual Basic (Declaration) | |
|---|---|
Public Property Geometry As Geometry | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As Filter Dim value As Geometry instance.Geometry = value value = instance.Geometry | |
| 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(); ESRI.ArcGIS.ADF.IMS.Geometry.Point pt = new ESRI.ArcGIS.ADF.IMS.Geometry.Point(); pt.X = -76.0; pt.Y = 42.0; queryFilter.Geometry = pt; | |
| Visual Basic | Copy Code |
|---|---|
Dim queryFilter As New Filter() Dim pt As New ESRI.ArcGIS.ADF.IMS.Geometry.Point() pt.X = -76.0 pt.Y = 42.0 queryFilter.Geometry = pt | |
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.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family