OpenTween.TweenMain.SetSortColumnByDisplayIndex C# (CSharp) Method

SetSortColumnByDisplayIndex() private method

発言一覧の指定した位置の列でソートする
private SetSortColumnByDisplayIndex ( int columnIndex ) : void
columnIndex int ソートする列の位置 (表示上の順序で指定)
return void
        private void SetSortColumnByDisplayIndex(int columnIndex)
        {
            // 表示上の列の位置から ColumnHeader を求める
            var col = this._curList.Columns.Cast<ColumnHeader>()
                .FirstOrDefault(x => x.DisplayIndex == columnIndex);

            if (col == null)
                return;

            var comparerMode = this.GetComparerModeByColumnIndex(col.Index);
            if (comparerMode == null)
                return;

            this.SetSortColumn(comparerMode.Value);
        }
TweenMain