A utility class that can generate 'lorem ipsum' placeholder text.
- Inheritance:
- object object
Constructors
LipsumGenerator()
Initializes a new instance of the LipsumGenerator
class.
LipsumGenerator(string, string)
Initializes a new instance of the LipsumGenerator
class.
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.
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.