Share via


MapBase.TryLocationToViewportPoint Method

This documentation is no longer available on MSDN, however it is available as a CHM download.

When overridden in a derived class, tries to convert a location to a viewport point.

Namespace: Microsoft.Maps.MapControl.Core
Assembly: Microsoft.Maps.MapControl (in Microsoft.Maps.MapControl.dll)

Usage

Syntax

'Declaration
Public MustOverride Function TryLocationToViewportPoint ( _
    location As Location, _
    <OutAttribute> ByRef viewportPoint As Point _
) As Boolean
public abstract bool TryLocationToViewportPoint (
    Location location,
    out Point viewportPoint
)
public:
virtual bool TryLocationToViewportPoint (
    Location^ location, 
    [OutAttribute] Point% viewportPoint
) abstract
public abstract boolean TryLocationToViewportPoint (
    Location location, 
    /** @attribute OutAttribute() */ /** @ref */ Point viewportPoint
)

Parameters

  • location
    The location to convert.
  • viewportPoint
    The viewport point that represents the specified location.

Return Value

Returns a Boolean indicating if the conversion was successful.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Target Platforms

See Also

Reference

MapBase Class
MapBase Members
Microsoft.Maps.MapControl.Core Namespace