PrinterSettings.StringCollection 类

定义

包含 String 对象的集合。Contains a collection of String objects.

此 API 支持产品基础结构,不能在代码中直接使用。

public: ref class PrinterSettings::StringCollection : System::Collections::ICollection
public class PrinterSettings.StringCollection : System.Collections.ICollection
type PrinterSettings.StringCollection = class
    interface ICollection
    interface IEnumerable
Public Class PrinterSettings.StringCollection
Implements ICollection
继承
PrinterSettings.StringCollection
实现

注解

@No__t-0 属性(表示计算机上安装的打印机的名称)为 PrinterSettings.StringCollectionThe PrinterSettings.InstalledPrinters property, which indicates the names of printers installed on a computer, is a PrinterSettings.StringCollection.

构造函数

PrinterSettings.StringCollection(String[])

初始化 PrinterSettings.StringCollection 类的新实例。Initializes a new instance of the PrinterSettings.StringCollection class.

属性

Count

获取集合中的字符串数目。Gets the number of strings in the collection.

Item[Int32]

获取指定索引处的 StringGets the String at a specified index.

方法

Add(String)

将字符串添加到集合的末尾。Adds a string to the end of the collection.

CopyTo(String[], Int32)

将当前 PrinterSettings.PrinterResolutionCollection 的内容复制到指定数组,从指定索引处开始。Copies the contents of the current PrinterSettings.PrinterResolutionCollection to the specified array, starting at the specified index.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetEnumerator()

返回可循环访问集合的枚举数。Returns an enumerator that can iterate through the collection.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

显式界面实现

ICollection.CopyTo(Array, Int32)

有关此成员的说明,请参见 CopyTo(Array, Int32)For a description of this member, see CopyTo(Array, Int32).

ICollection.Count

有关此成员的说明,请参见 CountFor a description of this member, see Count.

ICollection.IsSynchronized

有关此成员的说明,请参见 IsSynchronizedFor a description of this member, see IsSynchronized.

ICollection.SyncRoot

有关此成员的说明,请参见 SyncRootFor a description of this member, see SyncRoot.

IEnumerable.GetEnumerator()

有关此成员的说明,请参见 GetEnumerator()For a description of this member, see GetEnumerator().

扩展方法

Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于

另请参阅