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);
    }
}

適用対象

こちらもご覧ください