logo
VitNX3 Documentation

# DockContentDragFilter.StartDrag Method

Namespace: VitNX.UI.ControlsV1.Win32
Assembly: VitNX3 (in VitNX3.dll)
VB
C#
F#
C++
JScript
Copy

    public void StartDrag(
       VitNX_DockContent content
    )

    This language is not supported or no code example is available.

#### Parameters

content
  VitNX_DockContent

Source code
VB
C#
F#
C++
JScript
Copy

    public void StartDrag(VitNX_DockContent content)
     {
         _regionDropAreas = new Dictionary<VitNX_DockRegion,
             DockDropArea>();
         _groupDropAreas = new Dictionary<VitNX_DockGroup,
             DockDropCollection>();
         foreach (var region in _dockPanel.Regions.Values)
         {
             if (region.DockArea == VitNX_DockArea.Document)
                 continue;
             if (region.Visible)
             {
                 foreach (var group in region.Groups)
                 {
                     var collection = new DockDropCollection(_dockPanel, group);
                     _groupDropAreas.Add(group, collection);
                 }
             }
             else
             {
                 var area = new DockDropArea(_dockPanel, region);
                 _regionDropAreas.Add(region, area);
             }
         }
         _dragContent = content;
         _isDragging = true;
     }

    This language is not supported or no code example is available.

Applies to

#### .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+
See Also
DockContentDragFilter Class
VitNX.UI.ControlsV1.Win32 Namespace