GetDocZoom method

The current, minimum, and maximum zoom percents for the document are returned in the specified variables.

Method
short GetDocZoom(
VARIANT * pCurrentZoomPercent,
VARIANT * pMinZoomPercent,
VARIANT * pMaxZoomPercent )
Parameters
pCurrentZoomPercent
Points to a variable to receive the current zoom percent. On return, this variable is set to type VT_I2.
pMinZoomPercent
Points to a variable to receive the minimum zoom percent. On return, this variable is set to type VT_I2.
pMaxZoomPercent
Points to a variable to receive the maximum zoom percent. On return, this variable is set to type VT_I2.
Description
The current, minimum, and maximum zoom percents for the document are returned in the specified variables.
Return Value
Refer to return codes.
See Also
SetDocZoom method

C/C + +

The following example retrieves the current, minimum, and maximum zoom percents.
 CArsOle * pArsCtrl;
 short rc, current_zoom, min_zoom, max_zoom;
 VARIANT var1, var2, var3;

   .
   .

 rc = pArsCtrl->GetDocZoom( &var1, &var2, &var3 );
 if ( rc != ARS_OLE_RC_SUCCESS )
   ERROR;

 current_zoom = var1.iVal;
 min_zoom = var2.iVal;
 max_zoom = var3.iVal;

   .
   .

Visual Basic

Dim rc As Integer
Dim current_zoom, min_zoom, max_zoom As Variant

 .
 .

rc = ArsOle.GetDocZoom (current_zoom, min_zoom, max_zoom)
If rc <> ARS_OLE_RC_SUCCESS Then
   MsgBox "ERROR"
   End
End If

 .
 .