ESRI.ArcGIS.ADF.IMS
Geometry Property
See Also  Example
ESRI.ArcGIS.ADF.IMS.Carto.Layer Namespace > Filter Class : Geometry Property




Gets or sets the Geometry.

Syntax

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;}

Example

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 BasicCopy 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

Remarks

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.

See Also

© 2010 All Rights Reserved.