C# Class ARCed.Scintilla.StyleRunWriter

Provides a writer paradigm for building a StyleRun list and optionally the text that is being styled.
ファイルを表示 Open project: borisblizzard/arcreator

Public Methods

Method Description
GetStringBuilder ( ) : StringBuilder

Returns the underlying StringBuilder.

GetStyles ( ) : IEnumerable

Returns a StyleRun enumerable built by the StyleRunWriter thus far.

StyleRunWriter ( StringBuilder stringBuilder = null ) : System.Collections.Generic

Initializes a new instance of the StyleRunWriter class.

Write ( string value, int style ) : void

Writes a run of the specified string length in the specified style.

Method Details

GetStringBuilder() public method

Returns the underlying StringBuilder.
public GetStringBuilder ( ) : StringBuilder
return System.Text.StringBuilder

GetStyles() public method

Returns a StyleRun enumerable built by the StyleRunWriter thus far.
public GetStyles ( ) : IEnumerable
return IEnumerable

StyleRunWriter() public method

Initializes a new instance of the StyleRunWriter class.
public StyleRunWriter ( StringBuilder stringBuilder = null ) : System.Collections.Generic
stringBuilder System.Text.StringBuilder The optional to write to.
return System.Collections.Generic

Write() public method

Writes a run of the specified string length in the specified style.
public Write ( string value, int style ) : void
value string /// The string that determines the run length. If a was used to /// create the the string value will also be appended. ///
style int The zero-based index of the style for this run.
return void