LipsumGenerator Class
A utility class that can generate 'lorem ipsum' placeholder text.
public class LipsumGenerator
- Inheritance:
- object object
Constructors
LipsumGenerator()
Initializes a new instance of the LipsumGenerator class.
public LipsumGenerator()
LipsumGenerator(string, string)
Initializes a new instance of the LipsumGenerator class.
public LipsumGenerator(string startingWords, string words)
| Parameter | Type | Description |
|---|---|---|
| startingWords | string | The words that can start the first paragraph. |
| words | string | The words. |
Methods
GenerateParagraph(bool, int)
Generates a single paragraph of text.
public string GenerateParagraph(bool useStartingWords, int wordCount)
| Parameter | Type | Description |
|---|---|---|
| useStartingWords | bool | Whether to use the starting words to begin the paragraph (e.g. Lorem ipsum dolor sit amet...). |
| wordCount | int | The number of words in the paragraph. |
Returns
- string:
The generated text.