DocumentBase.ReadingLayoutSizeY Property

 

Gets or sets the height of pages in the document when it is displayed in reading layout view and is frozen for entering handwritten markup.

Namespace:   Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

public int ReadingLayoutSizeY { get; set; }

Property Value

Type: System.Int32

The height of pages in the document when it is displayed in reading layout view and is frozen for entering handwritten markup.

After setting the ReadingLayoutSizeX and ReadingLayoutSizeY properties, use the ReadingModeLayoutFrozen property to display the page using the specified height and width. Use the P:Microsoft.Office.Interop.Word.View.ReadingLayout property to display a document in reading layout view.

The following code example displays the document in reading layout view and then sets the size of the displayed page. To use this example, run it from the ThisDocument class in a document-level project.

private void DocumentReadingLayoutSizeX()
{
    this.ActiveWindow.View.ReadingLayout = true;
    this.ReadingLayoutSizeX = 300;
    this.ReadingLayoutSizeY = 300;
    this.ReadingModeLayoutFrozen = true;
}
Return to top
Show: