MapControl.GetOffsetFromLocation(Geopoint, Point) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts a geographic location to a point on the map.
public:
virtual void GetOffsetFromLocation(Geopoint ^ location, [Out] Point & offset) = GetOffsetFromLocation;
void GetOffsetFromLocation(Geopoint const& location, [Out] Point & offset);
public void GetOffsetFromLocation(Geopoint location, out Point offset);
Public Sub GetOffsetFromLocation (location As Geopoint, ByRef offset As Point)
Parameters
- location
- Geopoint
A geographic location to convert to a point on the map.
- offset
- Point
When this method returns, contains the corresponding point on the map.
Remarks
This method returns a valid point only when the geographic location appears within the map control view.
Compare the GetLocationFromOffset method.