Layout.SetIndexBasedLayoutOrientation(IndexBasedLayoutOrientation) 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 la valeur de la propriété IndexBasedLayoutOrientation
.
protected:
virtual void SetIndexBasedLayoutOrientation(IndexBasedLayoutOrientation orientation) = SetIndexBasedLayoutOrientation;
void SetIndexBasedLayoutOrientation(IndexBasedLayoutOrientation const& orientation);
protected void SetIndexBasedLayoutOrientation(IndexBasedLayoutOrientation orientation);
function setIndexBasedLayoutOrientation(orientation)
Protected Sub SetIndexBasedLayoutOrientation (orientation As IndexBasedLayoutOrientation)
Paramètres
- orientation
- IndexBasedLayoutOrientation
Valeur de l’énumération qui indique l’orientation, le cas échéant, dans laquelle les éléments sont disposés en fonction de leur index dans la collection source.
Exemples
public class MyHorizontalLayout : NonVirtualizingLayout
{
public class MyHorizontalLayout()
{
SetIndexBasedLayoutOrientation(IndexBasedLayoutOrientation.LeftToRight);
Debug.Assert(this.IndexBasedLayoutOrientation == IndexBasedLayoutOrientation.LeftToRight);
}
}
S’applique à
Voir aussi
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour