MapControl.TrySetViewBoundsAsync 메서드

정의

MapControl에 표시된 지도의 보기를 지정된 여백이 있는 지정된 GeoboundingBox의 내용으로 설정합니다. 뷰 변경은 지정된 애니메이션을 사용합니다.

public:
 virtual IAsyncOperation<bool> ^ TrySetViewBoundsAsync(GeoboundingBox ^ bounds, IReference<Thickness> ^ margin, MapAnimationKind animation) = TrySetViewBoundsAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TrySetViewBoundsAsync(GeoboundingBox const& bounds, IReference<Thickness> const& margin, MapAnimationKind const& animation);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TrySetViewBoundsAsync(GeoboundingBox bounds, System.Nullable<Thickness> margin, MapAnimationKind animation);
function trySetViewBoundsAsync(bounds, margin, animation)
Public Function TrySetViewBoundsAsync (bounds As GeoboundingBox, margin As Nullable(Of Thickness), animation As MapAnimationKind) As IAsyncOperation(Of Boolean)

매개 변수

bounds
GeoboundingBox

보기에 표시할 지리적 영역입니다.

margin

IReference<Thickness>

Nullable<Thickness>

뷰에서 사용할 여백입니다.

animation
MapAnimationKind

보기를 변경할 때 사용할 애니메이션입니다. 자세한 내용은 MapAnimationKind를 참조하세요.

반환

비동기 작업이 성공하면 true입니다. 그렇지 않으면 false입니다.

특성

설명

GeoboundingBox에서 지정한 영역이 MapControl을 채우지 않으면 컨트롤은 GeoboundingBox 외부의 주변 영역도 표시합니다.

적용 대상

추가 정보