C# Class AODL.Document.Content.Text.ParagraphBuilder

ParagraphBuilder use the methods of this class to create different kinds of paragraph.
Show file Open project: monsterlabs/HumanRightsTracker Class Usage Examples

Public Properties

Property Type Description
ParagraphSeperator string
ParagraphSeperator2 string

Public Methods

Method Description
CreateParagraphCollection ( IDocument document, string text, bool useStandardStyle, string paragraphSeperator ) : AODL.Document.Content.Text.ParagraphCollection

Creates the paragraph collection.

CreateParagraphWithCustomStyle ( IDocument document, string styleName ) : Paragraph

Create a paragraph with custom style.

CreateParagraphWithExistingNode ( IDocument document, XmlNode paragraphNode ) : Paragraph

Create a paragraph with existing node.

CreateSpreadsheetParagraph ( IDocument document ) : Paragraph

Create a spreadsheet paragraph.

CreateStandardTextParagraph ( IDocument document ) : Paragraph

Create a standard text paragraph.

CreateStandardTextTableParagraph ( IDocument document ) : Paragraph

Create a standard text table paragraph.

ParagraphBuilder ( ) : System

Initializes a new instance of the ParagraphBuilder class.

Method Details

CreateParagraphCollection() public static method

Creates the paragraph collection.
public static CreateParagraphCollection ( IDocument document, string text, bool useStandardStyle, string paragraphSeperator ) : AODL.Document.Content.Text.ParagraphCollection
document IDocument The document.
text string The text.
useStandardStyle bool if set to true [use standard style].
paragraphSeperator string The paragraph seperator.
return AODL.Document.Content.Text.ParagraphCollection

CreateParagraphWithCustomStyle() public static method

Create a paragraph with custom style.
public static CreateParagraphWithCustomStyle ( IDocument document, string styleName ) : Paragraph
document IDocument The document.
styleName string Name of the style.
return Paragraph

CreateParagraphWithExistingNode() public static method

Create a paragraph with existing node.
public static CreateParagraphWithExistingNode ( IDocument document, XmlNode paragraphNode ) : Paragraph
document IDocument The document.
paragraphNode System.Xml.XmlNode The paragraph node.
return Paragraph

CreateSpreadsheetParagraph() public static method

Create a spreadsheet paragraph.
public static CreateSpreadsheetParagraph ( IDocument document ) : Paragraph
document IDocument The document.
return Paragraph

CreateStandardTextParagraph() public static method

Create a standard text paragraph.
public static CreateStandardTextParagraph ( IDocument document ) : Paragraph
document IDocument The document.
return Paragraph

CreateStandardTextTableParagraph() public static method

Create a standard text table paragraph.
public static CreateStandardTextTableParagraph ( IDocument document ) : Paragraph
document IDocument The document.
return Paragraph

ParagraphBuilder() public method

Initializes a new instance of the ParagraphBuilder class.
public ParagraphBuilder ( ) : System
return System

Property Details

ParagraphSeperator public static property

Use \n\n as pargraph seperator for building a pargraph collection with the ParagraphBuilder.
public static string ParagraphSeperator
return string

ParagraphSeperator2 public static property

Use \r\n\r\n as pargraph seperator for building a pargraph collection with the ParagraphBuilder.
public static string ParagraphSeperator2
return string