WorkflowView.EnableFitToScreen Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Property Value
true
if the dynamic button is enabled; otherwise, false
.
Examples
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();
}
}
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
Applies to
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk