02-控件操作/美化GroupBox/BeautificationGroupBox/B_GroupBox.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;

namespace BeautificationGroupBox
{
    public partial class B_GroupBox : GroupBox
    {
        //private string BText;
        public B_GroupBox()
        {
            InitializeComponent();
            //BText = Name;
        }

        Rectangle rect;
        Rectangle rectT = new Rectangle(5, 1, 0, 0);
        float TextW = 0;
        float TextH = 0;
        string SText = "";
        bool NullText = false;

        
        //[Browsable(true), Category("属性设置"), Description("设置文本")]
        //public string Text
        //{
        //    get { return BText; }
        //    set
        //    {
        //        BText = value;
        //        if (BText.Length > 0)
        //            Invalidate();
        //    }
        //}

        private Color TLineColor = Color.Silver;
        [Browsable(true), Category("属性设置"), Description("设置文本")]
        public Color LineColor
        {
            get { return TLineColor; }
            set
            {
                TLineColor = value;
                Invalidate();
            }
        }

        private Color TFColor = Color.RoyalBlue;
        [Browsable(true), Category("属性设置"), Description("设置标题文本颜色")]
        public Color FColor
        {
            get { return TFColor; }
            set
            {
后面还有 59 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。