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
파일 보기 프로젝트 열기: qstarin/StringFormatEx 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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