Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delphin0850 patch 1 #68

Merged
merged 2 commits into from
Oct 12, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Header and footer margin attribute added
  • Loading branch information
delphin0850 authored and delphin0850 committed Oct 12, 2016
commit 408940d3828f263c8562987c5fa59e283715780b
32 changes: 32 additions & 0 deletions DocX/DocX.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,38 @@ public float MarginRight
}
}

/// <summary>
/// Header margin value in points. 1pt = 1/72 of an inch. Word internally writes docx using units = 1/20th of a point.
/// </summary>
public float MarginHeader
{
get
{
return getMarginAttribute(XName.Get("header", DocX.w.NamespaceName));
}

set
{
setMarginAttribute(XName.Get("header", DocX.w.NamespaceName), value);
}
}

/// <summary>
/// Footer margin value in points. 1pt = 1/72 of an inch. Word internally writes docx using units = 1/20th of a point.
/// </summary>
public float MarginFooter
{
get
{
return getMarginAttribute(XName.Get("footer", DocX.w.NamespaceName));
}

set
{
setMarginAttribute(XName.Get("footer", DocX.w.NamespaceName), value);
}
}

/// <summary>
/// Page width value in points. 1pt = 1/72 of an inch. Word internally writes docx using units = 1/20th of a point.
/// </summary>
Expand Down