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); }
public ScLabelCheckBox(ScMgr scmgr = null) : base(scmgr) { CheckBox = new ScCheckBox(scmgr); Add(CheckBox); Label = new ScLabel(scmgr); Add(Label); SizeChanged += ScLabelCheckBox_SizeChanged; }
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); }