Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordMargins

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Source revision
0eef6a5756b9 with working tree changes

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

Constructors

public WordMargins(WordDocument wordDocument, WordSection wordSection) #

Initializes a new instance for managing margins within the specified section.

Parameters

wordDocument OfficeIMO.Word.WordDocument required
Parent document.
wordSection OfficeIMO.Word.WordSection required
Section associated with the margins.

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? FooterDistance { get; set; } #

Get or set the footer 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.