PrinterSettings.StringCollection PrinterSettings.StringCollection PrinterSettings.StringCollection PrinterSettings.StringCollection Class

Definition

Contains a collection of String objects.

This API supports the product infrastructure and is not intended to be used directly from your code.

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
Inheritance
PrinterSettings.StringCollectionPrinterSettings.StringCollectionPrinterSettings.StringCollectionPrinterSettings.StringCollection
Implements

Remarks

The PrinterSettings.InstalledPrinters property, which indicates the names of printers installed on a computer, is a PrinterSettings.StringCollection.

Constructors

PrinterSettings.StringCollection(String[]) PrinterSettings.StringCollection(String[]) PrinterSettings.StringCollection(String[]) PrinterSettings.StringCollection(String[])

Initializes a new instance of the PrinterSettings.StringCollection class.

Properties

Count Count Count Count

Gets the number of strings in the collection.

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

Gets the String at a specified index.

Methods

Add(String) Add(String) Add(String) Add(String)

Adds a string to the end of the collection.

CopyTo(String[], Int32) CopyTo(String[], Int32) CopyTo(String[], Int32) CopyTo(String[], Int32)

Copies the contents of the current PrinterSettings.PrinterResolutionCollection to the specified array, starting at the specified index.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Returns an enumerator that can iterate through the collection.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

For a description of this member, see CopyTo(Array, Int32).

ICollection.Count ICollection.Count ICollection.Count ICollection.Count

For a description of this member, see Count.

ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized

For a description of this member, see IsSynchronized.

ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot

For a description of this member, see SyncRoot.

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

For a description of this member, see GetEnumerator().

Extension Methods

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to

See also