コード例 #1
0
ファイル: ScListViewEx.cs プロジェクト: zanderzhg/Sc
        ScLayer CreateItemControlField(ScMgr scmgr, ColumnSetting columnSetting)
        {
            ScLabel label = new ScLabel(scmgr);

            label.Dock      = ScDockStyle.Fill;
            label.ForeFont  = new D2DFont("微软雅黑", 12, SharpDX.DirectWrite.FontWeight.Regular);
            label.ForeColor = Color.FromArgb(255, 58, 166, 254);
            return(label);
        }
コード例 #2
0
        public ScLabelCheckBox(ScMgr scmgr = null)
            : base(scmgr)
        {
            CheckBox = new ScCheckBox(scmgr);
            Add(CheckBox);

            Label = new ScLabel(scmgr);
            Add(Label);

            SizeChanged += ScLabelCheckBox_SizeChanged;
        }
コード例 #3
0
ファイル: ScListViewEx.cs プロジェクト: zanderzhg/Sc
        ScLayer CreateHeaderControlField(ScMgr scmgr, ColumnSetting columnSetting)
        {
            ScLabel label = new ScLabel(scmgr);

            label.Dock     = ScDockStyle.Fill;
            label.ForeFont = new D2DFont("微软雅黑", 12, SharpDX.DirectWrite.FontWeight.Bold);

            if (!columnSetting.columnBaseInfo.isHideName)
            {
                label.Text = columnSetting.columnBaseInfo.displayName;
            }

            return(label);
        }