LipsumGenerator Class
A utility class that can generate 'lorem ipsum' placeholder text.
public class LipsumGenerator
- Inheritance:
- System.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 | System.String | The words that can start the first paragraph. |
words | System.String | The words. |
Methods
GenerateParagraph(Boolean, Int32)
Generates a single paragraph of text.
public string GenerateParagraph(bool useStartingWords, int wordCount)
Parameter | Type | Description |
---|---|---|
useStartingWords | System.Boolean | Whether to use the starting words to begin the paragraph (e.g. Lorem ipsum dolor sit amet...). |
wordCount | System.Int32 | The number of words in the paragraph. |
Returns
- System.String:
The generated text.
Inherited Members
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()