C# Класс CommandLine.Text.HelpText

Models an help text and collects related informations. You can assign it in place of a System.String instance.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
AddLine ( StringBuilder builder, string value ) : void
GetLength ( StringBuilder value ) : int
GetLength ( string value ) : int
GetMaxLength ( IList optionList ) : int
HelpText ( ) : System

Описание методов

AddOptions() публичный Метод

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.
Результат void

AddOptions() публичный Метод

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.
Результат void

AddPreOptionsLine() публичный Метод

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.
Результат void

HelpText() публичный Метод

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 .
Результат System

ToString() публичный Метод

Returns the help informations as a System.String.
public ToString ( ) : string
Результат string