tangxu
2024-10-22 4d9fe5ed98ceb6b8fe9dc52ebfb80860ad1aee99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// COPYRIGHT (C) Tom. ALL RIGHTS RESERVED.
// THE AntdUI PROJECT IS AN WINFORM LIBRARY LICENSED UNDER THE Apache-2.0 License.
// LICENSED UNDER THE Apache License, VERSION 2.0 (THE "License")
// YOU MAY NOT USE THIS FILE EXCEPT IN COMPLIANCE WITH THE License.
// YOU MAY OBTAIN A COPY OF THE LICENSE AT
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING, SOFTWARE
// DISTRIBUTED UNDER THE LICENSE IS DISTRIBUTED ON AN "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
// SEE THE LICENSE FOR THE SPECIFIC LANGUAGE GOVERNING PERMISSIONS AND
// LIMITATIONS UNDER THE License.
// GITEE: https://gitee.com/antdui/AntdUI
// GITHUB: https://github.com/AntdUI/AntdUI
// CSDN: https://blog.csdn.net/v_132
// QQ: 17379620
 
using System.Collections.Generic;
using System.Drawing;
 
namespace AntdUI
{
    partial class Table
    {
        internal class AutoWidth
        {
            /// <summary>
            /// 自动值
            /// </summary>
            public int value { get; set; }
 
            /// <summary>
            /// 最小值
            /// </summary>
            public int minvalue { get; set; }
        }
 
        internal class MoveHeader
        {
            public MoveHeader(Dictionary<int, MoveHeader> dir, Rectangle r, int index, int w, int min)
            {
                rect = r;
                i = index;
                min_width = min;
                if (dir.TryGetValue(index, out var find) && find.MouseDown)
                {
                    x = find.x;
                    MouseDown = find.MouseDown;
                    width = find.width;
                }
                else width = w;
            }
 
            public Rectangle rect { get; set; }
 
            public bool MouseDown { get; set; }
            public int x { get; set; }
            public int i { get; set; }
            public int width { get; set; }
            public int min_width { get; set; }
        }
 
        internal class DragHeader
        {
            public int x { get; set; }
            public int xr { get; set; }
            public int i { get; set; }
            public int im { get; set; } = -1;
            public bool last { get; set; }
            public bool hand { get; set; }
        }
    }
}