VitNX_DockSplitter.UpdateBounds Method

public void UpdateBounds()
This language is not supported or no code example is available.
public void UpdateBounds()
 {
     var bounds = _parentControl.RectangleToScreen(_control.Bounds);
     switch (_splitterType)
     {
         case VitNX_SplitterType.Left:
             Bounds = new Rectangle(bounds.Left - 2,
                 bounds.Top, 5,
                 bounds.Height);
             _maximum = bounds.Right - 2 - _control.MinimumSize.Width;
             break;
 
         case VitNX_SplitterType.Right:
             Bounds = new Rectangle(bounds.Right - 2,
                 bounds.Top, 5,
                 bounds.Height);
             _minimum = bounds.Left - 2 + _control.MinimumSize.Width;
             break;
 
         case VitNX_SplitterType.Top:
             Bounds = new Rectangle(bounds.Left,
                 bounds.Top - 2,
                 bounds.Width, 5);
             _maximum = bounds.Bottom - 2 - _control.MinimumSize.Height;
             break;
 
         case VitNX_SplitterType.Bottom:
             Bounds = new Rectangle(bounds.Left,
                 bounds.Bottom - 2,
                 bounds.Width, 5);
             _minimum = bounds.Top - 2 + _control.MinimumSize.Height;
             break;
     }
 }
					
This language is not supported or no code example is available.

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

.NET Core

Supported in: 5.0+, 6.0+

In this article

Definition