Class
WordMargins
OfficeIMO.Word
Provides access to page margin settings for a document section.
Inheritance
- object
- WordMargins
Usage
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
- Property WordPageSetup.Margins
Constructors
public WordMargins(WordDocument wordDocument, WordSection wordSection) #Initializes a new instance for managing margins within the specified section.
Parameters
- wordDocument OfficeIMO.Word.WordDocument
- Parent document.
- wordSection OfficeIMO.Word.WordSection
- Section associated with the margins.
Inherited Methods
Properties
public OfficeLength? Left { get; set; } #Get or set the left margin as a physical length
public OfficeLength? Right { get; set; } #Get or set the right margin as a physical length
public OfficeLength? Top { get; set; } #Get or set the top margin as a physical length
public OfficeLength? Bottom { get; set; } #Get or set the bottom margin as a physical length
public OfficeLength? HeaderDistance { get; set; } #Get or set the header distance as a physical length
public OfficeLength? Gutter { get; set; } #Gets or sets the gutter size as a physical length.
public WordMargin? Type { get; set; } #Gets or sets a predefined margin set that matches the current settings.