Skip to content

T_CommandLine_Text_SentenceBuilder

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

SentenceBuilder Class

Exposes standard delegates to provide a mean to customize part of help screen generation. This type is consumed by HelpText.

Inheritance Hierarchy

System.Object
  CommandLine.Text.SentenceBuilder
    CommandLine.Text.SentenceBuilder.DefaultSentenceBuilder
Namespace: CommandLine.Text
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

public abstract class SentenceBuilder

VB

Public MustInherit Class SentenceBuilder

C++

public ref class SentenceBuilder abstract

F#

[<AbstractClassAttribute>]
type SentenceBuilder =  class end

The SentenceBuilder type exposes the following members.

Constructors

 

Name Description
Private methodStatic member SentenceBuilder
Protected method SentenceBuilder Initializes a new instance of the SentenceBuilder class
  Back to Top

Properties

 

Name Description
Public property ErrorsHeadingText Gets a delegate that returns that errors block heading text.
Public propertyStatic member Factory Factory to allow custom SentenceBuilder injection
Public property FormatError Gets a delegate that handles singular error formatting. The delegates must accept an Error and returns a string.
Public property FormatMutuallyExclusiveSetErrors Gets a delegate that handles mutually exclusive set errors formatting. The delegates must accept a sequence of MutuallyExclusiveSetError and returns a string.
Public property HelpCommandText Get a delegate that returns the help text of help command. The delegates must accept a boolean that is equal

Field Value

Type:
true for options; otherwise

Field Value

Type:
false for verbs.

Public property RequiredWord Gets a delegate that returns the word 'required'.
Public property UsageHeadingText Gets a delegate that returns usage text block heading text.
Public property VersionCommandText Get a delegate that returns the help text of vesion command. The delegates must accept a boolean that is equal

Field Value

Type:
true for options; otherwise

Field Value

Type:
false for verbs.

  Back to Top

Methods

 

Name Description
Public methodStatic member Create Create instance of SentenceBuilder,
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
  Back to Top

Extension Methods

 

Name Description
Private Extension Method IsEmpty (Defined by UnParserExtensions.)
Private Extension Method NormalizeValue (Defined by UnParserExtensions.)
  Back to Top

See Also

Reference

CommandLine.Text Namespace

Clone this wiki locally