C# Класс StringFormatEx.Plugins.Core.CustomFormatInfo

Contains all the data necessary to perform a CustomFormat. This class is split into "Source" and "Format" sections because it takes care of both functions.
Наследование: ICustomSourceInfo
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
cache object>.IDictionary

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

Метод Описание
CustomFormatNested ( ) : void

Performs the CustomFormat method on this object. This is the same as calling CustomFormat(Me)

FormatContains ( string value ) : bool

Checks if the Format contains a string. Ignores case.

FormatEquals ( string value ) : bool

Checks if the Format equals a string. Ignores case.

FormatStartsWith ( string value ) : bool

Checks if the Format starts with a string. Ignores case.

SetFormat ( string newFormat, bool newHasNested ) : void

This method should only be used internally. Updates the Format property for use in a ExtendCustomFormat event.

Write ( string text ) : void
Write ( string text, int start, int length ) : void

Writes a string to the output and sets the Handled flag. As an added bonus, automatically escapes the "\t" and "\n" flags

WriteLiteral ( string text ) : void
WriteLiteral ( string text, int start, int length ) : void

Writes a string to the output and sets the Handled flag. Does NOT escape any special characters! This is useful for filenames and such.

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

Метод Описание
CustomFormatInfo ( ExtendedStringFormatter formatter, TextWriter newOutput, IFormatProvider newProvider, string newFormat, object newArgs ) : System

This method should only be used internally.

CustomFormatInfo ( ExtendedStringFormatter formatter, TextWriter newOutput, string newFormat, object newArgs ) : System

This method should only be used internally.

SetSelector ( string newSelector, int newSelectorIndex ) : void

This method should only be used internally. Updates the Selector for use in the ExtendCustomSource event.

WriteError ( string message, PlaceholderInfo placeholder ) : void

Writes a string to the output and sets the Handled flag.

WriteEscaped ( string text ) : void
WriteEscaped ( string text, int start, int length ) : void

Writes a string to the output and sets the Handled flag. Effeciently escapes the "\t" and "\n" flags

WriteFast ( string text, int start, int length ) : void

Writes a string to the output and sets the Handled flag. Does not escape any characters.

WriteRegularText ( string format, int start, int length ) : void

Writes a string to the output and sets the Handled flag.

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

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

Performs the CustomFormat method on this object. This is the same as calling CustomFormat(Me)
public CustomFormatNested ( ) : void
Результат void

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

Checks if the Format contains a string. Ignores case.
public FormatContains ( string value ) : bool
value string
Результат bool

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

Checks if the Format equals a string. Ignores case.
public FormatEquals ( string value ) : bool
value string
Результат bool

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

Checks if the Format starts with a string. Ignores case.
public FormatStartsWith ( string value ) : bool
value string
Результат bool

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

This method should only be used internally. Updates the Format property for use in a ExtendCustomFormat event.
public SetFormat ( string newFormat, bool newHasNested ) : void
newFormat string
newHasNested bool
Результат void

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

public Write ( string text ) : void
text string
Результат void

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

Writes a string to the output and sets the Handled flag. As an added bonus, automatically escapes the "\t" and "\n" flags
public Write ( string text, int start, int length ) : void
text string
start int
length int
Результат void

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

public WriteLiteral ( string text ) : void
text string
Результат void

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

Writes a string to the output and sets the Handled flag. Does NOT escape any special characters! This is useful for filenames and such.
public WriteLiteral ( string text, int start, int length ) : void
text string
start int
length int
Результат void

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

cache защищенное свойство

protected IDictionary cache
Результат object>.IDictionary