Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

WorkflowView.EnableFitToScreen Property

Enables the button on the design surface that when clicked changes the zoom level of the workflow design surface so that the entire workflow is displayed in the WorkflowView.

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

public bool EnableFitToScreen { get; set; }
/** @property */
public boolean get_EnableFitToScreen ()

/** @property */
public void set_EnableFitToScreen (boolean value)

public function get EnableFitToScreen () : boolean

public function set EnableFitToScreen (value : boolean)

Not applicable.

Property Value

True if the dynamic button is enabled, false otherwise.

The following example shows how to enable the fit to screen button. The method first obtains the IDesignerHost interface for the designer and then retrieves the WorkflowView object by using the GetService method before modifying the EnableFitToScreen property.

public void EnableFitToScreen()
{
    IDesignerHost designerHost = GetService(typeof(IDesignerHost)) as IDesignerHost;
    WorkflowView workflowView = 
        designerHost.RootComponent.Site.GetService(typeof(WorkflowView)) as WorkflowView;
    
    if (workflowView != null)
    {
        workflowView.EnableFitToScreen = true;
        workflowView.FitToScreenSize();
    }
}

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
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.