C# Class CommandLine.Text.HelpText

Models an help text and collects related informations. You can assign it in place of a System.String instance.
Afficher le fichier Open project: ErikEJ/SqlQueryStress Class Usage Examples

Méthodes publiques

Méthode Description
AddOptions ( object options ) : void

Adds a text block with options usage informations.

AddOptions ( object options, string requiredWord ) : void

Adds a text block with options usage informations.

AddPreOptionsLine ( string value ) : void

Adds a text line after copyright and before options usage informations.

HelpText ( string heading ) : System

Initializes a new instance of the CommandLine.Text.HelpText class specifying heading informations.

ToString ( ) : string

Returns the help informations as a System.String.

Private Methods

Méthode Description
AddLine ( StringBuilder builder, string value ) : void
GetLength ( StringBuilder value ) : int
GetLength ( string value ) : int
GetMaxLength ( IList optionList ) : int
HelpText ( ) : System

Method Details

AddOptions() public méthode

Adds a text block with options usage informations.
Thrown when parameter is null.
public AddOptions ( object options ) : void
options object The instance that collected command line arguments parsed with class.
Résultat void

AddOptions() public méthode

Adds a text block with options usage informations.
Thrown when parameter is null. Thrown when parameter is null or empty string.
public AddOptions ( object options, string requiredWord ) : void
options object The instance that collected command line arguments parsed with the class.
requiredWord string The word to use when the option is required.
Résultat void

AddPreOptionsLine() public méthode

Adds a text line after copyright and before options usage informations.
Thrown when parameter is null or empty string.
public AddPreOptionsLine ( string value ) : void
value string A instance.
Résultat void

HelpText() public méthode

Initializes a new instance of the CommandLine.Text.HelpText class specifying heading informations.
Thrown when parameter is null or empty string.
public HelpText ( string heading ) : System
heading string A string with heading information or /// an instance of .
Résultat System

ToString() public méthode

Returns the help informations as a System.String.
public ToString ( ) : string
Résultat string