CurrentSelectionPusher 类

类别显示中的当前选定内容设置 WinForms 货币管理器提供程序或 WPF 内容控件添加到 Visual Studio " 属性 " 窗口

此 API 不兼容 CLS。 

继承层次结构

System.Object
  System.Collections.ObjectModel.Collection<Object>
    Microsoft.VisualStudio.Modeling.Shell.CurrentSelectionPusher

命名空间:  Microsoft.VisualStudio.Modeling.Shell
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll 中)

语法

声明
<CLSCompliantAttribute(False)> _
Public Class CurrentSelectionPusher _
    Inherits Collection(Of Object) _
    Implements IDisposable
[CLSCompliantAttribute(false)]
public class CurrentSelectionPusher : Collection<Object>, 
    IDisposable

CurrentSelectionPusher 类型公开以下成员。

构造函数

  名称 说明
公共方法 CurrentSelectionPusher 创建组件。

页首

属性

  名称 说明
公共属性 Count 获取 Collection<T> 中实际包含的元素数。 (继承自 Collection<Object>。)
公共属性 Item 获取或设置位于指定索引处的元素。 (继承自 Collection<Object>。)
受保护的属性 Items 获取 Collection<T> 周围的 IList<T> 包装。 (继承自 Collection<Object>。)

页首

方法

  名称 说明
公共方法 Add 将对象添加到 Collection<T> 的结尾处。 (继承自 Collection<Object>。)
公共方法 AddCurrencyManagerProvidersFromContainer 添加在特定 windows 窗体容器找到的所有货币管理器提供程序
公共方法 Clear Collection<T> 中移除所有元素。 (继承自 Collection<Object>。)
受保护的方法 ClearItems 清除列表中的所有项 (重写 Collection<T>.ClearItems()。)
公共方法 Contains 确定某元素是否在 Collection<T> 中。 (继承自 Collection<Object>。)
公共方法 CopyTo 从目标数组的指定索引处开始将整个 Collection<T> 复制到兼容的一维 Array。 (继承自 Collection<Object>。)
公共方法 Dispose
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize (重写 Object.Finalize()。)
公共方法 GetEnumerator 返回循环访问 Collection<T> 的枚举数。 (继承自 Collection<Object>。)
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 IndexOf 搜索指定的对象,并返回整个 Collection<T> 中第一个匹配项的从零开始的索引。 (继承自 Collection<Object>。)
公共方法 Insert 将元素插入 Collection<T> 的指定索引处。 (继承自 Collection<Object>。)
受保护的方法 InsertItem 订阅在添加的任何提供程序的更改事件 (重写 Collection<T>.InsertItem(Int32, T)。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 Remove Collection<T> 中移除特定对象的第一个匹配项。 (继承自 Collection<Object>。)
公共方法 RemoveAt 移除 Collection<T> 的指定索引处的元素。 (继承自 Collection<Object>。)
受保护的方法 RemoveItem 在添加的任何提供程序的更改取消订阅事件 (重写 Collection<T>.RemoveItem(Int32)。)
受保护的方法 SetItem 替换列表中的项 (重写 Collection<T>.SetItem(Int32, T)。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

显式接口实现

  名称 说明
显式接口实现私有方法 IList.Add 将某项添加到 IList 中。 (继承自 Collection<Object>。)
显式接口实现私有方法 IList.Contains 确定 IList 是否包含特定值。 (继承自 Collection<Object>。)
显式接口实现私有方法 ICollection.CopyTo 从特定的 Array 索引处开始,将 ICollection 的元素复制到一个 Array 中。 (继承自 Collection<Object>。)
显式接口实现私有方法 IEnumerable.GetEnumerator 返回一个循环访问集合的枚举数。 (继承自 Collection<Object>。)
显式接口实现私有方法 IList.IndexOf 确定 IList 中特定项的索引。 (继承自 Collection<Object>。)
显式接口实现私有方法 IList.Insert 将某项插入 IList 中指定的索引处。 (继承自 Collection<Object>。)
显式接口实现私有属性 IList.IsFixedSize 获取一个值,该值指示 IList 是否具有固定大小。 (继承自 Collection<Object>。)
显式接口实现私有属性 ICollection<T>.IsReadOnly 获取一个值,该值指示 ICollection<T> 是否为只读。 (继承自 Collection<Object>。)
显式接口实现私有属性 IList.IsReadOnly 获取一个值,该值指示 IList 是否为只读。 (继承自 Collection<Object>。)
显式接口实现私有属性 ICollection.IsSynchronized 获取一个值,该值指示是否同步对 ICollection 的访问(线程安全)。 (继承自 Collection<Object>。)
显式接口实现私有属性 IList.Item 获取或设置位于指定索引处的元素。 (继承自 Collection<Object>。)
显式接口实现私有方法 IList.Remove IList 中移除特定对象的第一个匹配项。 (继承自 Collection<Object>。)
显式接口实现私有属性 ICollection.SyncRoot 获取可用于同步对 ICollection 的访问的对象。 (继承自 Collection<Object>。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参见

参考

Microsoft.VisualStudio.Modeling.Shell 命名空间