Condividi tramite


Layout.SetIndexBasedLayoutOrientation(IndexBasedLayoutOrientation) Metodo

Definizione

Imposta il valore della proprietà 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)

Parametri

orientation
IndexBasedLayoutOrientation

Valore dell'enumerazione che indica l'orientamento, se presente, in cui gli elementi sono disposti in base al relativo indice nella raccolta di origine.

Esempio

public class MyHorizontalLayout : NonVirtualizingLayout
{
    public class MyHorizontalLayout()
    {
        SetIndexBasedLayoutOrientation(IndexBasedLayoutOrientation.LeftToRight);
        Debug.Assert(this.IndexBasedLayoutOrientation == IndexBasedLayoutOrientation.LeftToRight);
    }
}

Si applica a

Vedi anche