Compartilhar via


DocumentBase.ReadingLayoutSizeX Property

Definition

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.

public:
 property int ReadingLayoutSizeX { int get(); void set(int value); };
public int ReadingLayoutSizeX { get; set; }
member this.ReadingLayoutSizeX : int with get, set
Public Property ReadingLayoutSizeX As Integer

Property Value

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

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 void DocumentReadingLayoutSizeX()
{
    this.ActiveWindow.View.ReadingLayout = true;
    this.ReadingLayoutSizeX = 300;
    this.ReadingLayoutSizeY = 300;
    this.ReadingModeLayoutFrozen = true;
}
Private Sub DocumentReadingLayoutSizeX()
    Me.ActiveWindow.View.ReadingLayout = True
    Me.ReadingLayoutSizeX = 300
    Me.ReadingLayoutSizeY = 300
    Me.ReadingModeLayoutFrozen = True
End Sub 

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.

Applies to