OptionCollection Class

This collection is used to hold a set of command line option definitions

Definition

Namespace: Sandcastle.Core.CommandLine
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2024.12.21.0
public sealed class OptionCollection : Collection<BaseOption>
Inheritance
Object    Collection<BaseOption>    OptionCollection

Constructors

OptionCollectionInitializes a new instance of the OptionCollection class

Properties

CountGets the number of elements actually contained in the Collection<T>.
(Inherited from Collection<BaseOption>)
Item[Int32]Gets or sets the element at the specified index.
(Inherited from Collection<BaseOption>)
Item[String] This read-only property can be used to retrieve an option by name

Methods

AddAdds an object to the end of the Collection<T>.
(Inherited from Collection<BaseOption>)
ClearRemoves all elements from the Collection<T>.
(Inherited from Collection<BaseOption>)
ContainsDetermines whether an element is in the Collection<T>.
(Inherited from Collection<BaseOption>)
CopyToCopies the entire Collection<T> to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from Collection<BaseOption>)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
GetEnumeratorReturns an enumerator that iterates through the Collection<T>.
(Inherited from Collection<BaseOption>)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IndexOfSearches for the specified object and returns the zero-based index of the first occurrence within the entire Collection<T>.
(Inherited from Collection<BaseOption>)
InsertInserts an element into the Collection<T> at the specified index.
(Inherited from Collection<BaseOption>)
ParseArguments Parse an array of command line option strings into command line option instances
RemoveRemoves the first occurrence of a specific object from the Collection<T>.
(Inherited from Collection<BaseOption>)
RemoveAtRemoves the element at the specified index of the Collection<T>.
(Inherited from Collection<BaseOption>)
ToStringReturns a string that represents the current object.
(Inherited from Object)
WriteOptionSummary This is used to write out a summary of the options

See Also