Forex_Strategy_Builder.Dialogs.Generator.IndicatorsLayout.SetVerticalScrollBar C# (CSharp) Метод

SetVerticalScrollBar() приватный Метод

Shows, hides, sets the scrollbar.
private SetVerticalScrollBar ( ) : void
Результат void
        void SetVerticalScrollBar()
        {
            int width  = layoutBase.Width - vScrollBar.Width;
            int height = layoutBase.Height;
            int totalHeight = flowLayoutIndicators.Height;

            vScrollBar.Enabled     = true;
            vScrollBar.Visible     = true;
            vScrollBar.Value       = 0;
            vScrollBar.SmallChange = 30;
            vScrollBar.LargeChange = 60;
            vScrollBar.Maximum     = Math.Max(totalHeight - height + 60, 0);
            vScrollBar.Location    = new Point(width, 0);
            vScrollBar.Height      = height;
            vScrollBar.Cursor      = Cursors.Default;

            flowLayoutIndicators.Location = new Point(0, 0);

            return;
        }