MapControl.TrySetViewBoundsAsync Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Définit l’affichage de la carte affichée dans mapControl sur le contenu du GeoboundingBox spécifié avec la marge spécifiée. La modification de l’affichage utilise l’animation spécifiée.
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)
Paramètres
- bounds
- GeoboundingBox
Zone géographique à afficher dans la vue.
- margin
Marge à utiliser dans la vue.
- animation
- MapAnimationKind
Animation à utiliser lors de la modification de l’affichage. Pour plus d’informations, consultez MapAnimationKind.
Retours
true si l’opération asynchrone a réussi ; sinon, false.
- Attributs
Remarques
Si la zone spécifiée par geoboundingBox ne remplit pas le MapControl, le contrôle affiche également la zone environnante en dehors de geoboundingBox.
S’applique à
Voir aussi
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de l’année 2024, nous abandonnerons progressivement le mécanisme de retour d’information GitHub Issues pour le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultez :Soumettre et afficher des commentaires pour