Document.ReadingLayoutSizeX Property (2007 System)
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.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)
Syntax
'Declaration
<BrowsableAttribute(False)> _
Public Property ReadingLayoutSizeX As Integer
'Usage
Dim instance As Document
Dim value As Integer
value = instance.ReadingLayoutSizeX
instance.ReadingLayoutSizeX = value
[BrowsableAttribute(false)]
public int ReadingLayoutSizeX { get; set; }
[BrowsableAttribute(false)]
public:
property int ReadingLayoutSizeX {
int get ();
void set (int value);
}
public function get ReadingLayoutSizeX () : int
public function set ReadingLayoutSizeX (value : int)
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.
This example is for a document-level customization.
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.