CircleFence Class |
Namespace: Telogis.GeoBase.GeoFence
The CircleFence type exposes the following members.
Name | Description | |
---|---|---|
CircleFence | Initializes a new instance of the CircleFence class |
Name | Description | |
---|---|---|
BoundingBox |
Calculates and returns the BoundingBox for this GeoFence.
| |
RenderBrush | Brush used to fill the GeoFence, use null for no fill.
| |
RenderPen | Pen used to draw the border around the GeoFence, use null for no border.
| |
RequiredRendermodes |
Gets the RenderMode required by this CircleFence.
|
Name | Description | |
---|---|---|
Contains |
Determines whether the given point is within this GeoFence.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetRadius |
Gets the radius of the GeoFence in the specified DistanceUnit.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Render |
Render the GeoFence on the specified IMap.
| |
SetRadius |
Sets the radius of the GeoFence in the specified DistanceUnit.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
Center |
A LatLon describing the center-point of the circle.
| |
Radius |
The radius of the GeoFence (in Radians).
|
Related articles: Geofences Concept.
CircleFence cf = new CircleFence(); // set the radius (in miles - we can use similar properties to set // the radius in meters and feet) and center location of the fence cf.RadiusMiles = 2; cf.Center = new LatLon(33.581353, -117.726979); // draw the CircleFence on our map myMap.Items.Add(cf);
The same effect can be achieved using XAML code by placing the following code snippet inside a Map object.
<GeoFence:CircleFence x:Name="cf" Center="33.581353, -117.726979" RadiusMiles="2" />
See also PolygonFence.