共用方式為


WorkflowView.EnableFitToScreen 屬性

定義

啟用設計介面上,當按下時會變更工作流程設定介面縮放層級的按鈕,使整個工作流程可以顯示在 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

屬性值

如果啟用動態按鈕則為 true,否則為 false

範例

下列範例將示範如何啟用 [調整成螢幕大小] 按鈕。 此方法首先取得設計工具的 介面,然後在修改 屬性前使用 方法取得 物件。

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

適用於