C# Class Novacode.InsertBeforeOrAfter

This class provides functions for inserting new DocXElements before or after the current DocXElement. Only certain DocXElements can support these functions without creating invalid documents, at the moment these are Paragraphs and Table.
Inheritance: DocXElement
Datei anzeigen Open project: WordDocX/DocX

Public Methods

Method Description
InsertBeforeOrAfter ( DocX document, System.Xml.Linq.XElement xml ) : System
InsertPageBreakAfterSelf ( ) : void
InsertPageBreakBeforeSelf ( ) : void
InsertParagraphAfterSelf ( Paragraph p ) : Paragraph
InsertParagraphAfterSelf ( string text ) : Paragraph
InsertParagraphAfterSelf ( string text, bool trackChanges ) : Paragraph
InsertParagraphAfterSelf ( string text, bool trackChanges, Formatting formatting ) : Paragraph
InsertParagraphBeforeSelf ( Paragraph p ) : Paragraph
InsertParagraphBeforeSelf ( string text ) : Paragraph
InsertParagraphBeforeSelf ( string text, bool trackChanges ) : Paragraph
InsertParagraphBeforeSelf ( string text, bool trackChanges, Formatting formatting ) : Paragraph
InsertTableAfterSelf ( Table t ) : Table
InsertTableAfterSelf ( int rowCount, int columnCount ) : Table
InsertTableBeforeSelf ( Table t ) : Table
InsertTableBeforeSelf ( int rowCount, int columnCount ) : Table

Method Details

InsertBeforeOrAfter() public method

public InsertBeforeOrAfter ( DocX document, System.Xml.Linq.XElement xml ) : System
document DocX
xml System.Xml.Linq.XElement
return System

InsertPageBreakAfterSelf() public method

public InsertPageBreakAfterSelf ( ) : void
return void

InsertPageBreakBeforeSelf() public method

public InsertPageBreakBeforeSelf ( ) : void
return void

InsertParagraphAfterSelf() public method

public InsertParagraphAfterSelf ( Paragraph p ) : Paragraph
p Paragraph
return Paragraph

InsertParagraphAfterSelf() public method

public InsertParagraphAfterSelf ( string text ) : Paragraph
text string
return Paragraph

InsertParagraphAfterSelf() public method

public InsertParagraphAfterSelf ( string text, bool trackChanges ) : Paragraph
text string
trackChanges bool
return Paragraph

InsertParagraphAfterSelf() public method

public InsertParagraphAfterSelf ( string text, bool trackChanges, Formatting formatting ) : Paragraph
text string
trackChanges bool
formatting Formatting
return Paragraph

InsertParagraphBeforeSelf() public method

public InsertParagraphBeforeSelf ( Paragraph p ) : Paragraph
p Paragraph
return Paragraph

InsertParagraphBeforeSelf() public method

public InsertParagraphBeforeSelf ( string text ) : Paragraph
text string
return Paragraph

InsertParagraphBeforeSelf() public method

public InsertParagraphBeforeSelf ( string text, bool trackChanges ) : Paragraph
text string
trackChanges bool
return Paragraph

InsertParagraphBeforeSelf() public method

public InsertParagraphBeforeSelf ( string text, bool trackChanges, Formatting formatting ) : Paragraph
text string
trackChanges bool
formatting Formatting
return Paragraph

InsertTableAfterSelf() public method

public InsertTableAfterSelf ( Table t ) : Table
t Table
return Table

InsertTableAfterSelf() public method

public InsertTableAfterSelf ( int rowCount, int columnCount ) : Table
rowCount int
columnCount int
return Table

InsertTableBeforeSelf() public method

public InsertTableBeforeSelf ( Table t ) : Table
t Table
return Table

InsertTableBeforeSelf() public method

public InsertTableBeforeSelf ( int rowCount, int columnCount ) : Table
rowCount int
columnCount int
return Table