C# Class Novacode.HelperFunctions

Mostra file Open project: WordDocX/DocX Class Usage Examples

Public Methods

Method Description
IsNullOrWhiteSpace ( this value ) : bool

Private Methods

Method Description
AddDefaultNumberingXml ( Package package ) : System.Xml.Linq.XDocument

If this document does not contain a /word/numbering.xml add the default one generated by Microsoft Word when the default bullet, numbered and multilevel lists are added to a blank document

AddDefaultStylesXml ( Package package ) : System.Xml.Linq.XDocument

If this document does not contain a /word/styles.xml add the default one generated by Microsoft Word.

CloneElement ( System.Xml.Linq.XElement element ) : System.Xml.Linq.XElement
ContainsEveryChildOf ( System.Xml.Linq.XElement desired, System.Xml.Linq.XElement toCheck, MatchFormattingOptions fo ) : bool

Checks whether 'toCheck' has all children that 'desired' has and values of 'val' attributes are the same

CreateCustomPropertiesPart ( DocX document ) : void
CreateEdit ( EditType t, System.DateTime edit_time, object content ) : System.Xml.Linq.XElement
CreateItemInList ( Novacode.List list, string listText, int level, ListItemType listType = ListItemType.Numbered, int startNumber = null, bool trackChanges = false, bool continueNumbering = false ) : Novacode.List
CreateOrGetSettingsPart ( Package package ) : PackagePart
CreateRelsPackagePart ( DocX Document, Uri uri ) : void
CreateTable ( int rowCount, int columnCount ) : System.Xml.Linq.XElement
CreateTableCell ( double w = 2310 ) : System.Xml.Linq.XElement

Create and return a cell of a table

DecompressXMLResource ( string manifest_resource_name ) : System.Xml.Linq.XDocument
FormatInput ( string text, System.Xml.Linq.XElement rPr ) : List
GetFirstParagraphEffectedByInsert ( DocX document, int index ) : Paragraph
GetFormattedText ( System.Xml.Linq.XElement e ) : List
GetFormattedTextRecursive ( System.Xml.Linq.XElement Xml, List &alist ) : void
GetSize ( System.Xml.Linq.XElement Xml ) : int
GetText ( System.Xml.Linq.XElement e ) : string
GetTextRecursive ( System.Xml.Linq.XElement Xml, StringBuilder &sb ) : void
GetUnderlineStyle ( string underlineStyle ) : UnderlineStyle
IsSameFile ( Stream streamOne, Stream streamTwo ) : bool
RenumberIDs ( DocX document ) : void
SplitParagraph ( Paragraph p, int index ) : System.Xml.Linq.XElement[]
ToFormattedText ( System.Xml.Linq.XElement e ) : Novacode.FormattedText
ToText ( System.Xml.Linq.XElement e ) : string

Method Details

IsNullOrWhiteSpace() public static method

public static IsNullOrWhiteSpace ( this value ) : bool
value this
return bool