WorkflowView.VScrollBar Propiedad

Definición

Obtiene la barra de desplazamiento vertical asociada a WorkflowView.Gets the vertical scrollbar associated with the 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

Valor de propiedad

VScrollBar

ScrollBar se puede utilizar para ajustar los valores y la visibilidad de la barra de desplazamiento horizontal.A ScrollBar you can use to adjust the settings and visibility of the horizontal scrollbar.

Ejemplos

En el ejemplo de código siguiente se muestra cómo obtener una instancia de la clase WorkflowView.The following code example demonstrates how you can obtain an instance of the WorkflowView class. El código establece a continuación varias propiedades WorkflowView, incluso HScrollBar y VScrollBar, y llama al método FitToWorkflowSize.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

Comentarios

Utilice VScrollBar para obtener la barra de desplazamiento vertical en WorkflowView, que puede utilizar para realizar los ajustes de la interfaz de usuario.Use VScrollBar to get the vertical scrollbar on the WorkflowView, which you can use to make user interface adjustments.

Se aplica a