SetDocRotation method
The document is displayed at the new rotation.
- Method
- short SetDocRotation(
- Parameters
- Rotation
- Specifies the new document rotation. This must be one of the following
rotation values found in ARSOLEEX.H:
ARS_OLE_ROTATION_0 ARS_OLE_ROTATION_90 ARS_OLE_ROTATION_180 ARS_OLE_ROTATION_270
- Description
- The document is displayed at the new rotation.
- Return Value
- Refer to return codes.
- See Also
- GetDocRotation method
C/C + +
The following example rotates the document to 90 degrees. CArsOle * pArsCtrl;
short rc;
.
.
rc = pArsCtrl->SetDocRotation( ARS_OLE_ROTATION_90 );
if ( rc != ARS_OLE_RC_SUCCESS )
ERROR;
.
.
Visual Basic
Dim rc As Integer
.
.
rc = ArsOle.SetDocRotation (ARS_OLE_ROTATION_90)
If rc <> ARS_OLE_RC_SUCCESS Then
MsgBox "ERROR"
End
End If
.
.