C# Класс WebApplications.Utilities.Formatting.FormatChunk

Наследование: IFormattable, IWriteable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Alignment int
IsControl bool
IsResolved bool

Private Properties

Свойство Тип Описание
Append FormatChunk
AppendChunk void
DeepCopyChunks void
FormatChunk System
FormatChunk System
FormatChunk System
Parse IEnumerable
ToString string

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

Метод Описание
FormatChunk ( Optional value = default(Optional<object>) ) : System

Creates a non-fill point chunk.

FormatChunk ( [ chunk, Optional value ) : System

Creates a clone of the FormatChunk, changing the resolved value.

ToString ( ) : string

Returns a System.String that represents this instance.

WriteTo ( TextWriter writer, string format = null ) : void

Writes this instance to the writer, using the optional format.

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

Метод Описание
Append ( [ value, [ resolver = null ) : FormatChunk
AppendChunk ( [ chunk ) : void
DeepCopyChunks ( [ source, [ destination ) : void

Performs a deep copy of the child chunks from source to destination.

FormatChunk ( [ resolver, [ tag, [ alignment, [ format ) : System

Initializes a new instance of the FormatChunk class.

FormatChunk ( [ resolver, [ tag, int alignment, [ format, Optional value = default(Optional<object>) ) : System

Initializes a new instance of the FormatChunk class.

FormatChunk ( [ resolver, [ tag, int alignment, [ format, bool isResolved, [ value, bool isControl ) : System

Initializes a new instance of the FormatChunk class.

Parse ( [ value, [ resolver = null ) : IEnumerable
ToString ( [ format, [ formatProvider = null ) : string

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

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

Creates a non-fill point chunk.
public FormatChunk ( Optional value = default(Optional<object>) ) : System
value Optional The value.
Результат System

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

Creates a clone of the FormatChunk, changing the resolved value.
public FormatChunk ( [ chunk, Optional value ) : System
chunk [ The chunk.
value Optional The value.
Результат System

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

Returns a System.String that represents this instance.
public ToString ( ) : string
Результат string

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

Writes this instance to the writer, using the optional format.
public WriteTo ( TextWriter writer, string format = null ) : void
writer TextWriter The writer.
format string The format.
Результат void

Описание свойств

Alignment публичное свойство

The alignment, if any; otherwise 0. (e.g. -3 for '{0,-3:G}'
public int Alignment
Результат int

IsControl публичное свойство

Control chunks are never written out when you call ToString(), but can be used by consumers of a FormatBuilder to extend functionality.
public bool IsControl
Результат bool

IsResolved публичное свойство

Gets a value indicating whether this instance is resolved.
public bool IsResolved
Результат bool