Craig's Utility Library  4.0 Beta
Utilities.Random.StringGenerators.LoremIpsumGenerator Class Reference

Lorem Ipsum Generator More...

Inheritance diagram for Utilities.Random.StringGenerators.LoremIpsumGenerator:
Utilities.Random.BaseClasses.GeneratorAttributeBase Utilities.Random.Interfaces.IGenerator< string > Utilities.Random.Interfaces.IGenerator< T >

Public Member Functions

 LoremIpsumGenerator (int NumberOfParagraphs=1, int NumberOfSentences=1, int MinSentenceLength=4, int MaxSentenceLength=10, bool HTMLFormatting=false)
 Constructor More...
 
virtual string Next (System.Random Rand)
 Generates a random value of the specified type More...
 
virtual string Next (System.Random Rand, string Min, string Max)
 Generates a random value of the specified type More...
 
override object NextObj (System.Random Rand)
 Generates next object More...
 
- Public Member Functions inherited from Utilities.Random.Interfaces.IGenerator< T >
Next (System.Random Rand, T Min, T Max)
 Generates a random value of the specified type More...
 
- Public Member Functions inherited from Utilities.Random.Interfaces.IGenerator< string >
Next (System.Random Rand)
 Generates a random value of the specified type More...
 
Next (System.Random Rand, T Min, T Max)
 Generates a random value of the specified type More...
 
object NextObj (System.Random Rand)
 Generates a random value and returns it as an object More...
 

Protected Member Functions

virtual string NextSentence (System.Random Rand, int NumberOfWords)
 Creates a Lorem Ipsum sentence. More...
 
- Protected Member Functions inherited from Utilities.Random.BaseClasses.GeneratorAttributeBase
 GeneratorAttributeBase (object Min, object Max)
 Constructor More...
 

Properties

virtual bool HTMLFormatting [get, protected set]
 Should the sentence use HTML formatting? More...
 
virtual int MaxSentenceLength [get, protected set]
 Maximum sentence length More...
 
virtual int MinSentenceLength [get, protected set]
 Minimum sentence length More...
 
virtual int NumberOfParagraphs [get, protected set]
 Number of paragraphs More...
 
virtual int NumberOfSentences [get, protected set]
 Number of sentences More...
 
- Properties inherited from Utilities.Random.BaseClasses.GeneratorAttributeBase
virtual object Max [get, protected set]
 Maximum allowed More...
 
virtual object Min [get, protected set]
 Minimum allowed More...
 

Detailed Description

Lorem Ipsum Generator

Definition at line 34 of file LoremIpsumGenerator.cs.

Constructor & Destructor Documentation

Utilities.Random.StringGenerators.LoremIpsumGenerator.LoremIpsumGenerator ( int  NumberOfParagraphs = 1,
int  NumberOfSentences = 1,
int  MinSentenceLength = 4,
int  MaxSentenceLength = 10,
bool  HTMLFormatting = false 
)

Constructor

Parameters
NumberOfParagraphsNumber of paragraphs
MaxSentenceLengthMaximum sentence length
MinSentenceLengthMinimum sentence length
NumberOfSentencesNumber of sentences per paragraph
HTMLFormattingDetermines if this should use HTML formatting or not

Definition at line 44 of file LoremIpsumGenerator.cs.

Member Function Documentation

virtual string Utilities.Random.StringGenerators.LoremIpsumGenerator.Next ( System.Random  Rand)
virtual

Generates a random value of the specified type

Parameters
RandRandom number generator that it can use
Returns
A randomly generated object of the specified type

Implements Utilities.Random.Interfaces.IGenerator< T >.

Definition at line 131 of file LoremIpsumGenerator.cs.

virtual string Utilities.Random.StringGenerators.LoremIpsumGenerator.Next ( System.Random  Rand,
string  Min,
string  Max 
)
virtual

Generates a random value of the specified type

Parameters
RandRandom number generator that it can use
MinMinimum value (inclusive)
MaxMaximum value (inclusive)
Returns
A randomly generated object of the specified type

Definition at line 162 of file LoremIpsumGenerator.cs.

override object Utilities.Random.StringGenerators.LoremIpsumGenerator.NextObj ( System.Random  Rand)
virtual

Generates next object

Parameters
RandRandom number generator
Returns
The next object

Implements Utilities.Random.BaseClasses.GeneratorAttributeBase.

Definition at line 172 of file LoremIpsumGenerator.cs.

virtual string Utilities.Random.StringGenerators.LoremIpsumGenerator.NextSentence ( System.Random  Rand,
int  NumberOfWords 
)
protectedvirtual

Creates a Lorem Ipsum sentence.

Parameters
NumberOfWordsNumber of words for the sentence
RandRandom number generator using
Returns
A string containing Lorem Ipsum text

Definition at line 183 of file LoremIpsumGenerator.cs.

Property Documentation

virtual bool Utilities.Random.StringGenerators.LoremIpsumGenerator.HTMLFormatting
getprotected set

Should the sentence use HTML formatting?

Definition at line 58 of file LoremIpsumGenerator.cs.

virtual int Utilities.Random.StringGenerators.LoremIpsumGenerator.MaxSentenceLength
getprotected set

Maximum sentence length

Definition at line 63 of file LoremIpsumGenerator.cs.

virtual int Utilities.Random.StringGenerators.LoremIpsumGenerator.MinSentenceLength
getprotected set

Minimum sentence length

Definition at line 68 of file LoremIpsumGenerator.cs.

virtual int Utilities.Random.StringGenerators.LoremIpsumGenerator.NumberOfParagraphs
getprotected set

Number of paragraphs

Definition at line 73 of file LoremIpsumGenerator.cs.

virtual int Utilities.Random.StringGenerators.LoremIpsumGenerator.NumberOfSentences
getprotected set

Number of sentences

Definition at line 78 of file LoremIpsumGenerator.cs.


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