Share via


MapControl.GetOffsetFromLocation(Geopoint, Point) Method

Definition

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.

Applies to

See also