WorkflowView.EnableFitToScreen Propriedade

Definição

Habilita o botão no design de superfície que, quando clicado, muda o nível de zoom da superfície de design do fluxo de trabalho para que todo o fluxo de trabalho seja exibido no WorkflowView.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.

public:
 property bool EnableFitToScreen { bool get(); void set(bool value); };
public bool EnableFitToScreen { get; set; }
member this.EnableFitToScreen : bool with get, set
Public Property EnableFitToScreen As Boolean

Valor da propriedade

Boolean

true Se o botão dinâmico estiver habilitado; caso contrário, false .true if the dynamic button is enabled; otherwise, false.

Exemplos

O exemplo a seguir mostra como habilitar o botão ajustar à tela.The following example shows how to enable the fit to screen button. O método primeiro obtém a IDesignerHost interface para o designer e, em seguida, recupera o WorkflowView objeto usando o GetService método antes de modificar a EnableFitToScreen propriedade.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();
    }
}
Public Sub EnableFitToScreen()

    Dim designerHost As IDesignerHost = CType(GetService(GetType(IDesignerHost)), IDesignerHost)
    Dim workflowView As WorkflowView = _
        CType(designerHost.RootComponent.Site.GetService(GetType(WorkflowView)), WorkflowView)

    If workflowView IsNot Nothing Then
        workflowView.EnableFitToScreen = True
        workflowView.FitToScreenSize()
    End If
End Sub

Aplica-se a