C# Class Novacode.Extensions

Afficher le fichier Open project: WordDocX/DocX

Méthodes publiques

Méthode Description
Flatten ( this e, System.Xml.Linq.XName name, List flat ) : void
GetAttribute ( this el, System.Xml.Linq.XName name, string defaultValue = "" ) : string
SetMargin ( this document, float top, float bottom, float right, float left ) : void

Sets margin for all the pages in a Dox document in Inches. (Written by Shashwat Tripathi)

Private Methods

Méthode Description
CloneElement ( System.Xml.Linq.XElement element ) : System.Xml.Linq.XElement
ToHex ( this source ) : string

Method Details

Flatten() public static méthode

public static Flatten ( this e, System.Xml.Linq.XName name, List flat ) : void
e this
name System.Xml.Linq.XName
flat List
Résultat void

GetAttribute() public static méthode

public static GetAttribute ( this el, System.Xml.Linq.XName name, string defaultValue = "" ) : string
el this
name System.Xml.Linq.XName
defaultValue string
Résultat string

SetMargin() public static méthode

Sets margin for all the pages in a Dox document in Inches. (Written by Shashwat Tripathi)
public static SetMargin ( this document, float top, float bottom, float right, float left ) : void
document this
top float Margin from the Top. Leave -1 for no change
bottom float Margin from the Bottom. Leave -1 for no change
right float Margin from the Right. Leave -1 for no change
left float Margin from the Left. Leave -1 for no change
Résultat void