a554835b 1b34 1995 11a9 f607a1ac23db - akesseler/Plexdata.Utilities.Templates GitHub Wiki

HoleToken Class

Represent a formattable token.

Inheritance Hierarchy

System.Object
  Plexdata.Utilities.Formatting.Entities.BaseToken
    Plexdata.Utilities.Formatting.Entities.HoleToken
Namespace: Plexdata.Utilities.Formatting.Entities
Assembly: Plexdata.Utilities.Templates (in Plexdata.Utilities.Templates.dll) Version: 1.0.0

Syntax

C#

internal class HoleToken : BaseToken

The HoleToken type exposes the following members.

Constructors

 

Name Description
Public method HoleToken Public parameterized construction.
  Back to Top

Properties

 

Name Description
Public property Format Gets the additional formatting instructions. (Inherited from BaseToken.)
Public property IsLeftJustified Indicates if the value alignment is left justified. In such a case the padding should be put behind the value. (Inherited from BaseToken.)
Public property IsNumbering Indicates if the symbol can be used as index. (Inherited from BaseToken.)
Public property IsRightJustified Indicates if the value alignment is right justified. In such a case the padding should be put in front of the value. (Inherited from BaseToken.)
Public property IsSpreading Indicates if the value corresponding to the symbol should be deserialized instead of simply stringifying it. (Inherited from BaseToken.)
Public property IsStringify Indicates if the value corresponding to the symbol should simply be converted into a string. (Inherited from BaseToken.)
Public property Lining Gets how to line up the formatted data. This is also known as value alignment. (Inherited from BaseToken.)
Public property Marker Gets the whole formatting instruction. (Inherited from BaseToken.)
Public property Offset Gets the offset within the whole source string. (Inherited from BaseToken.)
Public property Rating Gets the rating within the whole source string. (Inherited from BaseToken.)
Public property Symbol Gets the symbol (name or index). (Inherited from BaseToken.)
  Back to Top

Methods

 

Name Description
Private method ApplyLiningDependencies Applies the properties that depend on property Lining. (Inherited from BaseToken.)
Private method ApplySymbolDependencies Applies the properties that depend on property Symbol. (Inherited from BaseToken.)
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.)
Protected method Parse Parses the provided marker and applies all properties accordingly. (Overrides BaseToken.Parse(Int32, Int32, StringBuilder).)
Public method ToIndex Converts the symbol into an index, if possible, and returns it. (Overrides BaseToken.ToIndex().)
Public method ToLabel Converts the symbol into a label, if possible, and returns it. (Overrides BaseToken.ToLabel().)
Public method ToString Returns a string that represents the current object. (Inherited from BaseToken.)
  Back to Top

Fields

 

Name Description
Private field format This field holds the format value. (Inherited from BaseToken.)
Private field lining This field holds the lining value. (Inherited from BaseToken.)
Private field marker This field holds the marker value. (Inherited from BaseToken.)
Private field offset This field holds the offset value. (Inherited from BaseToken.)
Private field rating This field holds the rating value. (Inherited from BaseToken.)
Private field symbol This field holds the symbol value. (Inherited from BaseToken.)
  Back to Top

Extension Methods

 

Name Description
Private Extension Method AddPadding Adds value padding if necessary. (Defined by TemplateWeaver.)
Private Extension Method CanExpand Determines whether the argument can be expanded. (Defined by ArgumentExtension.)
Private Extension Method GetFormattedValue Converts the argument into its string representation. (Defined by TemplateWeaver.)
Private Extension Method GetPadding Gets the padding length. (Defined by TemplateWeaver.)
Private Extension Method HandleException Converts an exception into a string and returns it. (Defined by TemplateWeaver.)
Public Extension Method IsSystemType Determines whether an argument is of a build-in system type. (Defined by ArgumentExtension.)
Private Extension Method ToFormattedValue Turns the argument into its formatted representation. (Defined by TemplateWeaver.)
Private Extension Method ToSpreadingValue Converts the argument by serializing it. (Defined by TemplateWeaver.)
Private Extension Method ToStringifyValue Converts the argument into a string. (Defined by TemplateWeaver.)
Private Extension Method WeaveHoleToken Formats the related argument and appends it to the result. (Defined by TemplateWeaver.)
Private Extension Method WeaveTextToken Appends a text token to the output. (Defined by TemplateWeaver.)
Private Extension Method WeaveVoidToken Appends a void token to the output. (Defined by TemplateWeaver.)
  Back to Top

Remarks

This class represent a formattable token. Such a formattable token is characterized by a property name or a property index, as well as an additional alignment and/or an additional formatting instruction.

See Also

Reference

Plexdata.Utilities.Formatting.Entities Namespace

⚠️ **GitHub.com Fallback** ⚠️