DocumentBase.ReadingLayoutSizeX Property
Gets or sets the width 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)
Syntax
'Declaration
Public Property ReadingLayoutSizeX As Integer
Get
Set
public int ReadingLayoutSizeX { get; set; }
Property Value
Type: System.Int32
The width of pages in the document when it is displayed in reading layout view and is frozen for entering handwritten markup.
Remarks
After setting the ReadingLayoutSizeX and ReadingLayoutSizeY properties, use the ReadingModeLayoutFrozen property to display the page using the specified height and width. Use the ReadingLayout property to display a document in reading layout view.
Examples
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 Sub DocumentReadingLayoutSizeX()
Me.ActiveWindow.View.ReadingLayout = True
Me.ReadingLayoutSizeX = 300
Me.ReadingLayoutSizeY = 300
Me.ReadingModeLayoutFrozen = True
End Sub
private void DocumentReadingLayoutSizeX()
{
this.ActiveWindow.View.ReadingLayout = true;
this.ReadingLayoutSizeX = 300;
this.ReadingLayoutSizeY = 300;
this.ReadingModeLayoutFrozen = true;
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.