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
Afficher le fichier Open project: WordDocX/DocX

Méthodes publiques

Méthode 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 méthode

public InsertBeforeOrAfter ( DocX document, System.Xml.Linq.XElement xml ) : System
document DocX
xml System.Xml.Linq.XElement
Résultat System

InsertPageBreakAfterSelf() public méthode

public InsertPageBreakAfterSelf ( ) : void
Résultat void

InsertPageBreakBeforeSelf() public méthode

public InsertPageBreakBeforeSelf ( ) : void
Résultat void

InsertParagraphAfterSelf() public méthode

public InsertParagraphAfterSelf ( Paragraph p ) : Paragraph
p Paragraph
Résultat Paragraph

InsertParagraphAfterSelf() public méthode

public InsertParagraphAfterSelf ( string text ) : Paragraph
text string
Résultat Paragraph

InsertParagraphAfterSelf() public méthode

public InsertParagraphAfterSelf ( string text, bool trackChanges ) : Paragraph
text string
trackChanges bool
Résultat Paragraph

InsertParagraphAfterSelf() public méthode

public InsertParagraphAfterSelf ( string text, bool trackChanges, Formatting formatting ) : Paragraph
text string
trackChanges bool
formatting Formatting
Résultat Paragraph

InsertParagraphBeforeSelf() public méthode

public InsertParagraphBeforeSelf ( Paragraph p ) : Paragraph
p Paragraph
Résultat Paragraph

InsertParagraphBeforeSelf() public méthode

public InsertParagraphBeforeSelf ( string text ) : Paragraph
text string
Résultat Paragraph

InsertParagraphBeforeSelf() public méthode

public InsertParagraphBeforeSelf ( string text, bool trackChanges ) : Paragraph
text string
trackChanges bool
Résultat Paragraph

InsertParagraphBeforeSelf() public méthode

public InsertParagraphBeforeSelf ( string text, bool trackChanges, Formatting formatting ) : Paragraph
text string
trackChanges bool
formatting Formatting
Résultat Paragraph

InsertTableAfterSelf() public méthode

public InsertTableAfterSelf ( Table t ) : Table
t Table
Résultat Table

InsertTableAfterSelf() public méthode

public InsertTableAfterSelf ( int rowCount, int columnCount ) : Table
rowCount int
columnCount int
Résultat Table

InsertTableBeforeSelf() public méthode

public InsertTableBeforeSelf ( Table t ) : Table
t Table
Résultat Table

InsertTableBeforeSelf() public méthode

public InsertTableBeforeSelf ( int rowCount, int columnCount ) : Table
rowCount int
columnCount int
Résultat Table