WorkflowView.HScrollBar Property
.NET Framework 3.5
Gets the horizontal scrollbar for the WorkflowView.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
The following code example demonstrates how you can obtain an instance of the WorkflowView class. The code then sets several WorkflowView properties, including HScrollBar and VScrollBar, and calls the FitToWorkflowSize method.
public void DisplayFullWorkflowView() { IDesignerHost designerHost = designSurface.GetService(typeof(IDesignerHost)) as IDesignerHost; if (designerHost != null && designerHost.RootComponent != null) { WorkflowView workflowView = designerHost.RootComponent.Site.GetService(typeof(WorkflowView)) as WorkflowView; if (workflowView != null) { workflowView.Dock = DockStyle.Fill; workflowView.TabIndex = 1; workflowView.TabStop = true; workflowView.HScrollBar.TabStop = false; workflowView.VScrollBar.TabStop = false; workflowView.Focus(); workflowView.FitToWorkflowSize(); } } }
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.