Unit相关的方法|定义一堆静态的Unit值

2017-10-15 00:12:37  访问(1478) 赞(0) 踩(0)

 
using System.Web.UI.WebControls;


namespace SlowX.Core.Functions
{
    /// <summary>
    /// Unit相关的方法
    /// </summary>
    public class UnitSlowXCoreFunctions 
    {

        /// <summary>
        /// 2px
        /// </summary>
        public readonly static Unit Unit2px = Unit.Pixel(2);

        /// <summary>
        /// 5px
        /// </summary>
        public readonly static Unit Unit5px = Unit.Pixel(5);

        /// <summary>
        /// 10px
        /// </summary>
        public readonly static Unit Unit10px = Unit.Pixel(10);

        /// <summary>
        /// 15px
        /// </summary>
        public readonly static Unit Unit15px = Unit.Pixel(15);

        /// <summary>
        /// 20px
        /// </summary>
        public readonly static Unit Unit20px = Unit.Pixel(20);

        /// <summary>
        /// 25px
        /// </summary>
        public readonly static Unit Unit25px = Unit.Pixel(25);


        /// <summary>
        /// 30px
        /// </summary>
        public readonly static Unit Unit30px = Unit.Pixel(30);

        /// <summary>
        /// 40px
        /// </summary>
        public readonly static Unit Unit40px = Unit.Pixel(40);

        /// <summary>
        /// 50px
        /// </summary>
        public readonly static Unit Unit50px = Unit.Pixel(50);

        /// <summary>
        /// 60px
        /// </summary>
        public readonly static Unit Unit60px = Unit.Pixel(60);

        /// <summary>
        /// 70px
        /// </summary>
        public readonly static Unit Unit70px = Unit.Pixel(70);


        /// <summary>
        /// 75px
        /// </summary>
        public readonly static Unit Unit75px = Unit.Pixel(75);

        /// <summary>
        /// 80px
        /// </summary>
        public readonly static Unit Unit80px = Unit.Pixel(80);

        /// <summary>
        /// 90px
        /// </summary>
        public readonly static Unit Unit90px = Unit.Pixel(90);

        /// <summary>
        /// 100px
        /// </summary>
        public readonly static Unit Unit100px = Unit.Pixel(100);

        /// <summary>
        /// 110px
        /// </summary>
        public readonly static Unit Unit110px = Unit.Pixel(110);

        /// <summary>
        /// 120px
        /// </summary>
        public readonly static Unit Unit120px = Unit.Pixel(120);

        /// <summary>
        /// 130px
        /// </summary>
        public readonly static Unit Unit130px = Unit.Pixel(130);

        /// <summary>
        /// 135px
        /// </summary>
        public readonly static Unit Unit135px = Unit.Pixel(135);

        /// <summary>
        /// 140px
        /// </summary>
        public readonly static Unit Unit140px = Unit.Pixel(140);


        /// <summary>
        /// 150px
        /// </summary>
        public readonly static Unit Unit150px = Unit.Pixel(150);


        /// <summary>
        /// 170px
        /// </summary>
        public readonly static Unit Unit170px = Unit.Pixel(170);

        /// <summary>
        /// 180px
        /// </summary>
        public readonly static Unit Unit180px = Unit.Pixel(180);

        /// <summary>
        /// 200px
        /// </summary>
        public readonly static Unit Unit200px = Unit.Pixel(200);

        /// <summary>
        /// 250px
        /// </summary>
        public readonly static Unit Unit250px = Unit.Pixel(250);


        /// <summary>
        /// 300px 
        /// </summary>
        public readonly static Unit Unit300px = Unit.Pixel(300);

        /// <summary>
        /// 350px
        /// </summary>
        public readonly static Unit Unit350px = Unit.Pixel(350);

        /// <summary>
        /// 400px
        /// </summary>
        public readonly static Unit Unit400px = Unit.Pixel(400);

        /// <summary>
        /// 500px
        /// </summary>
        public readonly static Unit Unit500px = Unit.Pixel(500);


        /// <summary>
        /// 98%
        /// </summary>
        public readonly static Unit Unit98per = Unit.Percentage(98);

        /// <summary>
        /// 99%
        /// </summary>
        public readonly static Unit Unit99per = Unit.Percentage(99);


        /// <summary>
        /// 100%
        /// </summary>
        public readonly static Unit Unit100per = Unit.Percentage(100);

        /// <summary>
        /// 70%
        /// </summary>
        public readonly static Unit Unit70per = Unit.Percentage(70);
    }


}


上一条:

下一条:


 

相关评论

评论加载中……
 

发表评论

类型:
内容:
  (Alt+Enter)