In This Article

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(Boolean, Int32)

Generates a single paragraph of text.

public string GenerateParagraph(bool useStartingWords, int wordCount)
Parameter Type Description
useStartingWords Boolean

Whether to use the starting words to begin the paragraph (e.g. Lorem ipsum dolor sit amet...).

wordCount Int32

The number of words in the paragraph.

Returns

String:

The generated text.

Inherited Members