Class Bounds
A LatLngBounds instance represents a rectangle in geographical coordinates, including one that crosses the 180 degrees longitudinal meridian.
Inheritance
Inherited Members
Namespace:GoogleMaps
Assembly:GoogleMaps.dll
Syntax
public class Bounds : IScriptDescriptorData
Properties
NorthEast
Gets or sets the north east point of bounds.
Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
public LatLng NorthEast { get; set; }
Property Value
Type | Description |
---|---|
LatLng | The north east. |
SouthWest
Gets or sets the south west point of bounds.
Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
public LatLng SouthWest { get; set; }
Property Value
Type | Description |
---|---|
LatLng | The south west. |
Methods
FromScriptData(Object)
Retrieves an instance of Bounds from script data.
Declaration
public static Bounds FromScriptData(object scriptObject)
Parameters
Type | Name | Description |
---|---|---|
System.Object | scriptObject | The script object. |
Returns
Type | Description |
---|---|
Bounds | The new Bounds filled with the script data |
Parse(String)
Parses the specified bounds.
Declaration
public static Bounds Parse(string bounds)
Parameters
Type | Name | Description |
---|---|---|
System.String | bounds | The bounds. |
Returns
Type | Description |
---|---|
Bounds |
ToScriptData()
Returns a script data representation of an instance of Bounds.
Declaration
public IDictionary<string, object> ToScriptData()
Returns
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> | The script data as System.Collections.Generic.IDictionary<TKey, TValue> |
Implements
ToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |
Overrides
Operators
Implicit(String to Bounds)
Performs an implicit conversion from System.String to Bounds.
Declaration
public static implicit operator Bounds(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The string value of Bounds. |
Returns
Type | Description |
---|---|
Bounds | The result of the conversion. |