C# Class SIL.FieldWorks.Common.RootSites.TsStringCollectorEnv

Collect the results as a TsString.
Inheritance: CollectorEnv
ファイルを表示 Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method Description
AddTsString ( ITsString tss ) : void

Accumulate a TsString into our result. The base implementation does nothing.

OpenParagraph ( ) : void

keep track of the opened paragraphs, so we can add spaces before strings in new paragraphs.

TsStringCollectorEnv ( IVwEnv baseEnv, ISilDataAccess sda, int hvoRoot ) : System

Initializes a new instance of the T:TsStringCollectorEnv class.

Protected Methods

Method Description
AddResultString ( string s ) : void

Accumulate a string into our result. The base implementation does nothing.

Private Methods

Method Description
AddResultString ( string s, int ws ) : void

Accumulate a string into our result, with known writing system. This base implementation ignores the writing system.

AppendSpaceForFirstWordInNewParagraph ( string s ) : void

We want to append a space if its the first (non-zero-lengthed) word in new paragraph (after the first paragraph).

Method Details

AddResultString() protected method

Accumulate a string into our result. The base implementation does nothing.
protected AddResultString ( string s ) : void
s string The s.
return void

AddTsString() public method

Accumulate a TsString into our result. The base implementation does nothing.
public AddTsString ( ITsString tss ) : void
tss ITsString The string.
return void

OpenParagraph() public method

keep track of the opened paragraphs, so we can add spaces before strings in new paragraphs.
public OpenParagraph ( ) : void
return void

TsStringCollectorEnv() public method

Initializes a new instance of the T:TsStringCollectorEnv class.
public TsStringCollectorEnv ( IVwEnv baseEnv, ISilDataAccess sda, int hvoRoot ) : System
baseEnv IVwEnv The base env.
sda ISilDataAccess Date access to get prop values etc.
hvoRoot int The root object to display, if m_baseEnv is null. /// If baseEnv is not null, hvoRoot is ignored.
return System