WorkflowView.HScrollBar Property
.NET Framework 4.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 Sub DisplayFullWorkflowView() Dim designerHost As IDesignerHost = CType(GetService(GetType(IDesignerHost)), IDesignerHost) If designerHost IsNot Nothing And designerHost.RootComponent IsNot Nothing Then Dim workflowView As WorkflowView = _ CType(designerHost.RootComponent.Site.GetService(GetType(WorkflowView)), WorkflowView) If workflowView IsNot Nothing Then workflowView.Dock = DockStyle.Fill workflowView.TabIndex = 1 workflowView.TabStop = True workflowView.HScrollBar.TabStop = False workflowView.VScrollBar.TabStop = False workflowView.Focus() workflowView.FitToWorkflowSize() End If End If End Sub
- 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 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.