public StatusControl(Range anchor, int columnCount, int headerRowCount, int bodyRowCount) { _columnCount = columnCount; _headerRowCount = headerRowCount; _headerPainter = new RangePainter { InteriorColor = SpartaColors.DisabledControlInterior, }; _headerPainter.Border.Around(); _header = new LabelControl { Text = "Status", Anchor = anchor, Painter = { HorizontalAlignment = XlHAlign.xlHAlignLeft, FontSize = 16 } }; _body = new LabelControl(bodyRowCount, columnCount) { Anchor = anchor.Offset[headerRowCount], Painter = { VerticalAlignment = XlVAlign.xlVAlignTop, HorizontalAlignment = XlHAlign.xlHAlignLeft, } }; _body.Painter.Border.Around(); Anchor = anchor; }
public DateEditorControl() { _painter = new RangePainter { NumberFormat = KnownFormats.Date }; }
public LabelControl(int rowCount = 1, int columnCount = 1) { _rowCount = rowCount; _columnCount = columnCount; Painter = new RangePainter { InteriorColor = ExcelColor.LightGray, MergeCells = true }; }
public Button(Range anchor) { Anchor = anchor; Painter = new RangePainter { MergeCells = true, VerticalAlignment = XlVAlign.xlVAlignCenter, HorizontalAlignment = XlHAlign.xlHAlignCenter, InteriorColor = SpartaColors.ButtonBackground, FontColor = SpartaColors.ButtonForeground, IsBold = true, }; Painter.Border.Around(); }
public DropDownSelector() { _painter = new RangePainter(); }