WorkflowView.HScrollBar 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.
Gets the horizontal scrollbar for the WorkflowView.
public:
property System::Windows::Forms::HScrollBar ^ HScrollBar { System::Windows::Forms::HScrollBar ^ get(); };
public System.Windows.Forms.HScrollBar HScrollBar { get; }
member this.HScrollBar : System.Windows.Forms.HScrollBar
Public ReadOnly Property HScrollBar As HScrollBar
Property Value
A ScrollBar you can use to adjust the settings and visibility of the horizontal scrollbar.
Examples
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();
}
}
}
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
Applies to
See also
Samarbejd med os på GitHub
Kilden til dette indhold kan findes på GitHub, hvor du også kan oprette og gennemse problemer og pullanmodninger. Du kan få flere oplysninger i vores vejledning til bidragydere.