bovender framework
C# framework that implements MVVM and more
Bovender.Text.Multiline Class Reference

Represents a text with multiple lines. More...

Public Member Functions

void Add (string text)
 Adds text to the multiline text. More...
 
void Add (string text, string newLineSeparator)
 Adds text to the multiline text by splitting it into multiple lines by the newLineSeparator . More...
 
void AddLine (string line)
 Adds an individual line. More...
 
 Multiline (bool ignoreHashedComments)
 
 Multiline (string text)
 Creates an instance using text as initial text. More...
 
 Multiline (string text, bool ignoreHashedComments)
 

Properties

string Text [get]
 Gets the multiline text as a single string. More...
 
int NumberOfLines [get]
 
bool IgnoreHashedComments [get, set]
 Indicates whether or not to ignore comments that are marked with a hash (#). More...
 

Detailed Description

Represents a text with multiple lines.

As lines are added, line breaks are removed as appropriate.

Definition at line 31 of file Multiline.cs.

Constructor & Destructor Documentation

Bovender.Text.Multiline.Multiline ( string  text)
inline

Creates an instance using text as initial text.

Parameters
textInitial text.

Definition at line 144 of file Multiline.cs.

Member Function Documentation

void Bovender.Text.Multiline.Add ( string  text)
inline

Adds text to the multiline text.

The text to add may consist of multiple lines. The newline separator to use will be guessed.

Parameters
textText to add

Definition at line 75 of file Multiline.cs.

void Bovender.Text.Multiline.Add ( string  text,
string  newLineSeparator 
)
inline

Adds text to the multiline text by splitting it into multiple lines by the newLineSeparator .

Parameters
textText to add
newLineSeparatorLine separator

Definition at line 86 of file Multiline.cs.

void Bovender.Text.Multiline.AddLine ( string  line)
inline

Adds an individual line.

Parameters
lineLine to add.

Definition at line 99 of file Multiline.cs.

Property Documentation

bool Bovender.Text.Multiline.IgnoreHashedComments
getset

Indicates whether or not to ignore comments that are marked with a hash (#).

Definition at line 63 of file Multiline.cs.

string Bovender.Text.Multiline.Text
get

Gets the multiline text as a single string.

Definition at line 39 of file Multiline.cs.


The documentation for this class was generated from the following file: