Daniel's XL Toolbox NG
Bovender.Text.Multiline Class Reference

Represents a text with multiple lines. As lines are added, line breaks are removed as appropriate. More...

Public Member Functions

void Add (string text)
 Adds text to the multiline text. The text to add may consist of multiple lines. The newline separator to use will be guessed. 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 ()
 
 Multiline (bool ignoreHashedComments)
 
 Multiline (string text)
 Creates an instance using text as initial text. More...
 
 Multiline (string text, bool ignoreHashedComments)
 
void Add (string text)
 Adds text to the multiline text. The text to add may consist of multiple lines. The newline separator to use will be guessed. 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 ()
 
 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.

Constructor & Destructor Documentation

◆ Multiline() [1/8]

Bovender.Text.Multiline.Multiline ( )
inline

◆ Multiline() [2/8]

Bovender.Text.Multiline.Multiline ( bool  ignoreHashedComments)
inline

◆ Multiline() [3/8]

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

Creates an instance using text as initial text.

Parameters
textInitial text.

◆ Multiline() [4/8]

Bovender.Text.Multiline.Multiline ( string  text,
bool  ignoreHashedComments 
)
inline

◆ Multiline() [5/8]

Bovender.Text.Multiline.Multiline ( )
inline

◆ Multiline() [6/8]

Bovender.Text.Multiline.Multiline ( bool  ignoreHashedComments)
inline

◆ Multiline() [7/8]

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

Creates an instance using text as initial text.

Parameters
textInitial text.

◆ Multiline() [8/8]

Bovender.Text.Multiline.Multiline ( string  text,
bool  ignoreHashedComments 
)
inline

Member Function Documentation

◆ Add() [1/4]

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

◆ Add() [2/4]

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

◆ Add() [3/4]

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

◆ Add() [4/4]

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

◆ AddLine() [1/2]

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

Adds an individual line.

Parameters
lineLine to add.

◆ AddLine() [2/2]

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

Adds an individual line.

Parameters
lineLine to add.

Property Documentation

◆ IgnoreHashedComments

bool Bovender.Text.Multiline.IgnoreHashedComments
getset

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

◆ NumberOfLines

int Bovender.Text.Multiline.NumberOfLines
get

◆ Text

string Bovender.Text.Multiline.Text
get

Gets the multiline text as a single string.


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