ningshuxia
2023-02-07 d027501182b03a0c036af712a2b7f31d55144562
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
using DevExpress.Utils;
using DevExpress.XtraGrid.Views.BandedGrid;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace IStation.WinFormUI
{
    /// <summary>
    /// BandedGridView拓展类
    /// </summary>
    public static class BandGridViewExtend
    {
        /// <summary>
        /// 设置bandView
        /// </summary>
        /// <param name="band"></param>
        public static void SetBandView(this BandedGridView band,int height=30)
        {
            band.SetNormalView(height);
            band.BandPanelRowHeight = height;
            band.Appearance.BandPanel.TextOptions.HAlignment = HorzAlignment.Center;
        }
 
    }
}