FlatMapMode.ConstrainView Method
This documentation is no longer available on MSDN, however it is available as a CHM download.
When overridden in a derived class, limits the values to valid margins.
Namespace: Microsoft.Maps.MapControl.Core
Assembly: Microsoft.Maps.MapControl (in Microsoft.Maps.MapControl.dll)
Usage
Syntax
'Declaration
<SuppressMessageAttribute("Microsoft.Design", "CA1045:DoNotPassTypesByReference", MessageId:="1#")> _
<SuppressMessageAttribute("Microsoft.Design", "CA1045:DoNotPassTypesByReference", MessageId:="2#")> _
<SuppressMessageAttribute("Microsoft.Design", "CA1045:DoNotPassTypesByReference", MessageId:="3#")> _
Public Overridable Function ConstrainView ( _
center As Location, _
ByRef zoomLevel As Double, _
ByRef heading As Double, _
ByRef pitch As Double _
) As Boolean
[SuppressMessageAttribute("Microsoft.Design", "CA1045:DoNotPassTypesByReference", MessageId="1#")]
[SuppressMessageAttribute("Microsoft.Design", "CA1045:DoNotPassTypesByReference", MessageId="2#")]
[SuppressMessageAttribute("Microsoft.Design", "CA1045:DoNotPassTypesByReference", MessageId="3#")]
public virtual bool ConstrainView (
Location center,
ref double zoomLevel,
ref double heading,
ref double pitch
)
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1045:DoNotPassTypesByReference", MessageId=L"1#")]
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1045:DoNotPassTypesByReference", MessageId=L"2#")]
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1045:DoNotPassTypesByReference", MessageId=L"3#")]
public:
virtual bool ConstrainView (
Location^ center,
double% zoomLevel,
double% heading,
double% pitch
)
/** @attribute SuppressMessageAttribute("Microsoft.Design", "CA1045:DoNotPassTypesByReference", MessageId="1#") */
/** @attribute SuppressMessageAttribute("Microsoft.Design", "CA1045:DoNotPassTypesByReference", MessageId="2#") */
/** @attribute SuppressMessageAttribute("Microsoft.Design", "CA1045:DoNotPassTypesByReference", MessageId="3#") */
public boolean ConstrainView (
Location center,
/** @ref */ double zoomLevel,
/** @ref */ double heading,
/** @ref */ double pitch
)
Parameters
- center
The center location.
- zoomLevel
The zoom level of the map.
- heading
The heading of the map.
- pitch
The pitch of the map.
Return Value
Returns Boolean indicating whether or not any of the values were changed.
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
FlatMapMode Class
FlatMapMode Members
Microsoft.Maps.MapControl.Core Namespace