Exemple #1
0
        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
     };
 }
Exemple #3
0
        public LabelControl(int rowCount = 1, int columnCount = 1)
        {
            _rowCount    = rowCount;
            _columnCount = columnCount;

            Painter = new RangePainter
            {
                InteriorColor = ExcelColor.LightGray,
                MergeCells    = true
            };
        }
Exemple #4
0
 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();
 }