Click or drag to resize
HelpText Class
Provides means to format an help screen. You can assign it in place of a String instance.
Inheritance Hierarchy
SystemObject
  X3Platform.CommandLine.TextHelpText

Namespace: X3Platform.CommandLine.Text
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public class HelpText

The HelpText type exposes the following members.

Constructors
  NameDescription
Public methodHelpText
Initializes a new instance of the HelpText class.
Public methodHelpText(String)
Initializes a new instance of the HelpText class specifying heading string.
Public methodHelpText(BaseSentenceBuilder)
Initializes a new instance of the HelpText class specifying the sentence builder.
Public methodHelpText(String, String)
Initializes a new instance of the HelpText class specifying heading and copyright strings.
Public methodHelpText(BaseSentenceBuilder, String)
Initializes a new instance of the HelpText class specifying the sentence builder and heading string.
Public methodHelpText(String, String, Object)
Initializes a new instance of the HelpText class specifying heading and copyright strings.
Public methodHelpText(BaseSentenceBuilder, String, String)
Initializes a new instance of the HelpText class specifying heading and copyright strings.
Public methodHelpText(BaseSentenceBuilder, String, String, Object)
Initializes a new instance of the HelpText class specifying heading and copyright strings.
Top
Methods
  NameDescription
Public methodAddOptions(Object)
Adds a text block with options usage string.
Public methodAddOptions(Object, String)
Adds a text block with options usage string.
Public methodAddOptions(Object, String, Int32)
Adds a text block with options usage string.
Public methodAddPostOptionsLine
Adds a text line at the bottom, after options usage string.
Public methodAddPreOptionsLine
Adds a text line after copyright and before options usage strings.
Public methodStatic memberAutoBuild(Object)
Creates a new instance of the HelpText class using common defaults.
Public methodStatic memberAutoBuild(Object, String)
Creates a new instance of the HelpText class using common defaults, for verb commands scenario.
Public methodStatic memberAutoBuild(Object, ActionHelpText, Boolean)
Creates a new instance of the HelpText class using common defaults.
Public methodStatic memberDefaultParsingErrorsHandler
Supplies a default parsing error handler implementation.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodOnFormatOptionHelpText
The OnFormatOptionHelpText method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Public methodRenderParsingErrorsText
Builds a string that contains a parsing error message.
Public methodToString
Returns the help screen as a String.
(Overrides ObjectToString.)
Top
Operators
Properties
  NameDescription
Public propertyAddDashesToOption
Gets or sets a value indicating whether the format of options should contain dashes. It modifies behavior of AddOptions(Object) method.
Public propertyAdditionalNewLineAfterOption
Gets or sets a value indicating whether to add an additional line after the description of the option.
Public propertyCopyright
Gets or sets the copyright string. You can directly assign a CopyrightInfo instance.
Public propertyHeading
Gets or sets the heading string. You can directly assign a HeadingInfo instance.
Public propertyMaximumDisplayWidth
Gets or sets the maximum width of the display. This determines word wrap when displaying the text.
Public propertySentenceBuilder
Gets the BaseSentenceBuilder instance specified in constructor.
Top
Events
  NameDescription
Public eventFormatOptionHelpText
Occurs when an option help text is formatted.
Top
See Also