Share via


WorkflowView.VScrollBar Proprietà

Definizione

Ottiene la barra di scorrimento verticale associata alla classe WorkflowView.

public:
 property System::Windows::Forms::VScrollBar ^ VScrollBar { System::Windows::Forms::VScrollBar ^ get(); };
public System.Windows.Forms.VScrollBar VScrollBar { get; }
member this.VScrollBar : System.Windows.Forms.VScrollBar
Public ReadOnly Property VScrollBar As VScrollBar

Valore della proprietà

Classe ScrollBar che è possibile utilizzare per regolare le impostazioni e la visibilità della barra di scorrimento orizzontale.

Esempio

Nell'esempio di codice seguente viene illustrato come creare un'istanza della classe WorkflowView. Il codice imposta quindi molte proprietà WorkflowView, tra cui HScrollBar e VScrollBar, e chiama il metodo FitToWorkflowSize.

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

Commenti

Utilizzare la proprietà VScrollBar per ottenere la barra di scorrimento verticale sull'oggetto WorkflowView, che è possibile utilizzare per apportare modifiche all'interfaccia utente.

Si applica a

Vedi anche