WebGroupBox[Aspx控件]

     最近一直在学习.netWeb控件开发,以前在C/s中用习惯了GroupBox控件,在如今的asp.net中也想使用这样的现成控件,只不过一直以来没有找到;于是前几天就在想为何自己不写一个这样的控件来使用,今天完成了这个控件,贴出来和大家一起分享和学习。
     详细代码如下:
   
Code
   控件样式枚举类:
     
using System;
using System.Collections.Generic;
using System.Text;

namespace MyWebControls
{
    
public enum WebGroupStyleColor
    
{
        nocolor,
        green,
        red,
        Blue,
        Black,
        Yellow,
        SlateGray,
        RosyBrown,
        RoyalBlue,
        SaddleBrown,
        Salmon,
        SeaGreen,
        Sienna,
        Silver,
        SlateBlue,
        SpringGreen,
        Transparent,
        YellowGreen
    }

}

 1using System;
 2using System.Collections.Generic;
 3using System.Text;
 4
 5namespace MyWebControls
 6{
 7    /// <summary>
 8    /// 定义枚举类型控件样式
 9    /// </summary>

10    public enum Align
11    {
12        /// <summary>
13        /// center of Align
14        /// </summary>

15        center,
16
17        /// <summary>
18        /// left of Align
19        /// </summary>

20        left,
21        /// <summary>
22        /// right of Align
23        /// </summary>

24        right
25    }

26}

27
  我已经做好了被拍砖的心里准备。
原文地址:https://www.cnblogs.com/ziyan22/p/1118654.html