Partilhar via


Layout.SetIndexBasedLayoutOrientation(IndexBasedLayoutOrientation) Método

Definição

Define o valor da propriedade 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)

Parâmetros

orientation
IndexBasedLayoutOrientation

Um valor da enumeração que indica a orientação, se houver, na qual os itens são dispostos com base em seu índice na coleção de origem.

Exemplos

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

Aplica-se a

Confira também