本文整理匯總了C#中OpenTween.TabClass.GetId方法的典型用法代碼示例。如果您正苦於以下問題:C# TabClass.GetId方法的具體用法?C# TabClass.GetId怎麽用?C# TabClass.GetId使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類OpenTween.TabClass
的用法示例。
在下文中一共展示了TabClass.GetId方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: GetSelectionMarkStatusId
private long? GetSelectionMarkStatusId(DetailsListView listView, TabClass tab)
{
var selectionMarkIndex = listView.SelectionMark;
return selectionMarkIndex != -1 ? tab.GetId(selectionMarkIndex) : (long?)null;
}
示例2: GetSelectedStatusIds
private long[] GetSelectedStatusIds(DetailsListView listView, TabClass tab)
{
var selectedIndices = listView.SelectedIndices;
if (selectedIndices.Count > 0 && selectedIndices.Count < 61)
return tab.GetId(selectedIndices);
else
return null;
}
示例3: GetFocusedStatusId
private long? GetFocusedStatusId(DetailsListView listView, TabClass tab)
{
var focusedItem = listView.FocusedItem;
return focusedItem != null ? tab.GetId(focusedItem.Index) : (long?)null;
}
示例4: SaveListViewScroll
/// <summary>
/// <see cref="ListView"/> のスクロール位置に関する情報を <see cref="ListViewScroll"/> として返します
/// </summary>
private ListViewScroll SaveListViewScroll(DetailsListView listView, TabClass tab)
{
var listScroll = new ListViewScroll
{
ScrollLockMode = this.GetScrollLockMode(listView),
};
if (listScroll.ScrollLockMode == ScrollLockMode.FixedToItem)
{
var topItem = listView.TopItem;
if (topItem != null)
listScroll.TopItemStatusId = tab.GetId(topItem.Index);
}
return listScroll;
}