다음을 통해 공유


Layout.SetIndexBasedLayoutOrientation(IndexBasedLayoutOrientation) 메서드

정의

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)

매개 변수

orientation
IndexBasedLayoutOrientation

원본 컬렉션의 인덱스 기반 항목이 배치되는 방향(있는 경우)을 나타내는 열거형 값입니다.

예제

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

적용 대상

추가 정보