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.2.18.0
public sealed class OptionCollection : Collection<BaseOption>
Inheritance
Object    CollectionBaseOption    OptionCollection

Constructors

OptionCollectionInitializes a new instance of the OptionCollection class

Properties

CountGets the number of elements actually contained in the CollectionT.
(Inherited from CollectionBaseOption)
ItemInt32Gets or sets the element at the specified index.
(Inherited from CollectionBaseOption)
ItemString This read-only property can be used to retrieve an option by name

Methods

AddAdds an object to the end of the CollectionT.
(Inherited from CollectionBaseOption)
ClearRemoves all elements from the CollectionT.
(Inherited from CollectionBaseOption)
ContainsDetermines whether an element is in the CollectionT.
(Inherited from CollectionBaseOption)
CopyToCopies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from CollectionBaseOption)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
GetEnumeratorReturns an enumerator that iterates through the CollectionT.
(Inherited from CollectionBaseOption)
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 CollectionT.
(Inherited from CollectionBaseOption)
InsertInserts an element into the CollectionT at the specified index.
(Inherited from CollectionBaseOption)
ParseArguments Parse an array of command line option strings into command line option instances
RemoveRemoves the first occurrence of a specific object from the CollectionT.
(Inherited from CollectionBaseOption)
RemoveAtRemoves the element at the specified index of the CollectionT.
(Inherited from CollectionBaseOption)
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