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: ref class PrinterSettings::StringCollection : System::Collections::Generic::IEnumerable<System::String ^>, System::Collections::ICollection
public class PrinterSettings.StringCollection : System.Collections.ICollection
public class PrinterSettings.StringCollection : System.Collections.Generic.IEnumerable<string>, System.Collections.ICollection
type PrinterSettings.StringCollection = class
    interface ICollection
    interface IEnumerable
type PrinterSettings.StringCollection = class
    interface ICollection
    interface IEnumerable
    interface seq<string>
Public Class PrinterSettings.StringCollection
Implements ICollection
Public Class PrinterSettings.StringCollection
Implements ICollection, IEnumerable(Of String)
Inheritance
PrinterSettings.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[])

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

Initializes a new instance of the PrinterSettings.StringCollection class.

Properties

Count

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

Gets the number of strings in the collection.

Item[Int32]

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

Gets the String at a specified index.

Methods

Add(String)

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

Adds a string to the end of the collection.

CopyTo(String[], Int32)

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

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.

(Inherited from Object)
GetEnumerator()

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

Returns an enumerator that can iterate through the collection.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32)

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

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

ICollection.Count

For a description of this member, see Count.

ICollection.IsSynchronized

For a description of this member, see IsSynchronized.

ICollection.SyncRoot

For a description of this member, see SyncRoot.

IEnumerable.GetEnumerator()

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

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

IEnumerable<String>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Extension Methods

ToFrozenDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>)

Creates a FrozenDictionary<TKey,TValue> from an IEnumerable<T> according to specified key selector function.

ToFrozenDictionary<TSource,TKey,TElement>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>)

Creates a FrozenDictionary<TKey,TValue> from an IEnumerable<T> according to specified key selector and element selector functions.

ToFrozenSet<T>(IEnumerable<T>, IEqualityComparer<T>)

Creates a FrozenSet<T> with the specified values.

ToImmutableArray<TSource>(IEnumerable<TSource>)

Creates an immutable array from the specified collection.

ToImmutableDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>)

Constructs an immutable dictionary based on some transformation of a sequence.

ToImmutableDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>)

Constructs an immutable dictionary from an existing collection of elements, applying a transformation function to the source keys.

ToImmutableDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IEqualityComparer<TKey>, IEqualityComparer<TValue>)

Enumerates and transforms a sequence, and produces an immutable dictionary of its contents by using the specified key and value comparers.

ToImmutableDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IEqualityComparer<TKey>)

Enumerates and transforms a sequence, and produces an immutable dictionary of its contents by using the specified key comparer.

ToImmutableDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>)

Enumerates and transforms a sequence, and produces an immutable dictionary of its contents.

ToImmutableHashSet<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>)

Enumerates a sequence, produces an immutable hash set of its contents, and uses the specified equality comparer for the set type.

ToImmutableHashSet<TSource>(IEnumerable<TSource>)

Enumerates a sequence and produces an immutable hash set of its contents.

ToImmutableList<TSource>(IEnumerable<TSource>)

Enumerates a sequence and produces an immutable list of its contents.

ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IComparer<TKey>, IEqualityComparer<TValue>)

Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents by using the specified key and value comparers.

ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IComparer<TKey>)

Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents by using the specified key comparer.

ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>)

Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents.

ToImmutableSortedSet<TSource>(IEnumerable<TSource>, IComparer<TSource>)

Enumerates a sequence, produces an immutable sorted set of its contents, and uses the specified comparer.

ToImmutableSortedSet<TSource>(IEnumerable<TSource>)

Enumerates a sequence and produces an immutable sorted set of its contents.

Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to

See also