This documentation is archived and is not being maintained.

WorkflowView.Zoom Property

Gets or sets the zoom level of the WorkflowView.

Namespace: System.Workflow.ComponentModel.Design
Assembly: System.Workflow.ComponentModel (in system.workflow.componentmodel.dll)

public int Zoom { get; set; }
/** @property */
public int get_Zoom ()

/** @property */
public void set_Zoom (int value)

public function get Zoom () : int

public function set Zoom (value : int)

Not applicable.

Property Value

The zoom level of the WorkflowView.

Exception typeCondition


If the zoom level is less than the minimum zoom level of the AmbientTheme


if the zoom level exceeds the maximum zoom level of the AmbientTheme.

Use the zoom feature to enlarge or reduce the size of the components inside the WorkflowView. The AmbientTheme sets the minimum and maximum zoom levels for the WorkflowView.

The following example shows how to set the Zoom property of a WorkflowView.

This code example is part of the Workflow Monitor SDK Sample from the MainForm.cs file. For more information, see Workflow Monitor Sample.

private void ToolStripComboBoxZoom_SelectedIndexChanged(object sender, EventArgs e)
    if (workflowViewHost.WorkflowView == null) return;
    //Parse the value and set the WorkflowView zoom - set to 100% if invalid
    string newZoom = this.toolStripComboBoxZoom.Text.Trim();
    if (newZoom.EndsWith("%"))
        newZoom = newZoom.Substring(0, newZoom.Length - 1);

    if (newZoom.Length > 0)
            this.workflowViewHost.WorkflowView.Zoom = Convert.ToInt32(newZoom);
            this.workflowViewHost.WorkflowView.Zoom = 100;
        this.workflowViewHost.WorkflowView.Zoom = 100;

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0