# Modify the Document View

## Change the Layout of a Document

- To determine whether the layout of a document can be changed, use the VAPIMWP_VIEW_CANLAYOUT message.

- To get the current layout of a document, use the VAPIMWP_VIEW_GETLAYOUT message.

- To set the layout of a document, use the VAPIMWP_VIEW_SETLAYOUT message.

## Change the Aspect Ratio of a Document

- To determine whether the aspect ratio of a document can be changed, use the VAPIMWP_VIEW_CANASPECTRATIO message.
- To get the current aspect ratio of a document, use the VAPIMWP_VIEW_GETASPECTRATIO message.
- To set the aspect ratio of a document, use the VAPIMWP_VIEW_SETASPECTRATIO message.

## Invert, Rotate, or Magnify a Document

- To determine whether a document can be inverted, use the VAPIMWP_VIEW_CANINVERT message.

- To get the current invert state of a document, use the VAPIMWP_VIEW_GETINVERT message.

- To set the invert state of a document, use the VAPIMWP_VIEW_SETINVERT message.

- To determine whether a document can be rotated, use the VAPIMWP_VIEW_CANROTATE message.

- To get the current rotation of a document, use the VAPIMWP_VIEW_GETROTATE message.

- To set the rotation of a document, use the VAPIMWP_VIEW_SETROTATE message.

- To determine whether a document can be magnified, use the VAPIMWP_VIEW_CANMAGNIFY message.

- To determine whether a document can be magnified to fit the document selection to the window, use the VAPIMWP_VIEW_CANFITTOWINDOW message.

- To get the current magnification of a document, use the VAPIMWP_VIEW_GETMAGNIFY message.

- To set the magnification of a document, use the VAPIMWP_VIEW_SETMAGNIFY message.

## Display or Hide Gridlines in a Document

- To determine whether a document supports gridlines, use the VAPIMWP_VIEW_CANGRIDLINES message.
- To get the current gridline state of a document, use the VAPIMWP_VIEW_GETGRIDLINES message.
- To set the gridline state of a document, use the VAPIMWP_VIEW_SETGRIDLINES message.

## Play a Multimedia Document

- To determine whether a multimedia document can be played, use the VAPIMWP_VIEW_CANPLAY message.

- To play a multimedia document, use the VAPIMWP_VIEW_PLAY message.

- To determine whether the playing of a multimedia document can be paused, use the VAPIMWP_VIEW_CANPAUSE message.

- To pause the playing of a multimedia document, use VAPIMWP_VIEW_PAUSE .

- To determine whether the playing of a multimedia document can be stopped, use the VAPIMWP_VIEW_CANSTOP message.

- To stop the playing of a multimedia document, use the VAPIMWP_VIEW_STOP message.

- To get the play mode (that is, to stop or loop at the end of a multimedia document after playing it), use the VAPIMWP_VIEW_GETPLAYMODE message.

- To set the play mode of a multimedia document to stop at the end after playing it, use the VAPIMWP_VIEW_END message.

- To set the play mode of a multimedia document to loop at the end after playing it, use the VAPIMWP_VIEW_LOOP message.

_FT_HTML5_bannerTitle.htm