SetScale Method

Sets the horizontal and vertical scaling factors (between 15% and 1,000%) for the document that is displayed in the viewer control.

expression.SetScale(dScaleX, dScaleY)

*expression   * Required. An expression that returns an MiDocView object.

dScaleX    Required Double. The new horizontal scaling factor.

dScaleY    Required Double. The new vertical scaling factor.

Remarks

The GetScale and SetScale methods use a scale where 1 = 100% of actual size, 0.75

= 75%, and so on.

When the SetScale method specifies new values, the ScaleChanged event is raised and the GetScale method returns a different value.

Example

The following example scales the document displayed in the viewer control to 75% of actual size, both horizontally and vertically.

MiDocView1.SetScale 0.75, 0.75

Applies to | MiDocView Object