WindowTabCollection 类

定义

表示 WindowTab 值的有序集合。

public ref class WindowTabCollection sealed : IIterable<WindowTab ^>, IVector<WindowTab ^>
/// [Windows.Foundation.Metadata.ContractVersion(Windows.UI.Shell.WindowTabManagerContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class WindowTabCollection final : IIterable<WindowTab>, IVector<WindowTab>
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.UI.Shell.WindowTabManagerContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class WindowTabCollection : IEnumerable<WindowTab>, IList<WindowTab>
Public NotInheritable Class WindowTabCollection
Implements IEnumerable(Of WindowTab), IList(Of WindowTab)
继承
Object Platform::Object IInspectable WindowTabCollection
属性
实现

Windows 要求

设备系列
Windows Desktop Extension SDK (在 10.0.23504.0 中引入)
API contract
Windows.UI.Shell.WindowTabManagerContract (在 v1.0 中引入)

注解

重要

此 API 仅适用于 Win32 桌面应用。 不支持 UWP 和其他应用类型。

属性

Size

获取集合的大小 (计数) 。

方法

Append(WindowTab)

将新项添加到集合末尾。

Clear()

从集合中移除所有项。

First()

返回集合中项的迭代器。

GetAt(UInt32)

返回位于指定索引处的项。

GetMany(UInt32, WindowTab[])

通过迭代器在一次传递中检索多个元素。

GetView()

获取集合中的不可变视图。

IndexOf(WindowTab, UInt32)

检索指定项的索引。

InsertAt(UInt32, WindowTab)

在指定的索引处插入指定的项。

MoveTab(WindowTab, UInt32)

将指定的窗口选项卡移动到集合中的新位置。

RemoveAt(UInt32)

删除指定索引处的项。

RemoveAtEnd()

删除集合中的最后一项。

ReplaceAll(WindowTab[])

首先清除集合,然后将提供的数组作为新项插入。

SetAt(UInt32, WindowTab)

将指定索引处的值设置为指定 WindowTab 值。

适用于

另请参阅