C# 클래스 WebApplications.Utilities.Formatting.FormatChunk

상속: IFormattable, IWriteable
파일 보기 프로젝트 열기: webappsuk/CoreLibraries 1 사용 예제들

공개 프로퍼티들

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