C# Class Novacode.Extensions

ファイルを表示 Open project: WordDocX/DocX

Public Methods

Method 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

Method Description
CloneElement ( System.Xml.Linq.XElement element ) : System.Xml.Linq.XElement
ToHex ( this source ) : string

Method Details

Flatten() public static method

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

GetAttribute() public static method

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

SetMargin() public static method

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
return void