C# Class ScintillaNET.StyleRunWriter

Provides a writer paradigm for building a StyleRun list and optionally the text that is being styled.
Show file Open project: NekoProject/NekoKun

Public Methods

Method Description
GetStringBuilder ( ) : StringBuilder

Returns the underlying StringBuilder.

GetStyles ( ) : IEnumerable

Returns a StyleRun enumerable built by the StyleRunWriter thus far.

StyleRunWriter ( ) : System
StyleRunWriter ( StringBuilder stringBuilder ) : System

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 StringBuilder

GetStyles() public method

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

StyleRunWriter() public method

public StyleRunWriter ( ) : System
return System

StyleRunWriter() public method

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

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