コード例 #1
0
        void CreateColumnTitle(Range range, string text)
        {
            Formatting style = range.BeginUpdateFormatting();

            try {
                style.Font.Name      = defaultRegularFontName;
                style.Font.FontStyle = SpreadsheetFontStyle.Bold;
                style.Font.Color     = DXColor.FromArgb(0xff, 0x33, 0x33, 0x33);
                style.Borders.BottomBorder.LineStyle = BorderLineStyle.Medium;
                style.Alignment.Vertical             = SpreadsheetVerticalAlignment.Center;
            }
            finally {
                range.EndUpdateFormatting(style);
            }
            range.Value = text;
        }
コード例 #2
0
        void SetInvoiceTotalCell(Cell cell, int goodsCount)
        {
            Formatting newFmt = cell.BeginUpdateFormatting();

            try {
                newFmt.NumberFormat         = accountingFormat;
                newFmt.Font.Color           = DXColor.Black;
                newFmt.Fill.BackgroundColor = DXColor.FromArgb(0xff, 0xea, 0xea, 0xea);
                newFmt.Alignment.Horizontal = Spreadsheet.SpreadsheetHorizontalAlignment.Center;
                newFmt.Font.Size            = 13.5;
            }
            finally {
                cell.EndUpdateFormatting(newFmt);
            }
            string formula = String.Format("=SUM(F{0}:F{1})", goodsStartRow + 1, goodsStartRow + goodsCount);

            cell.Formula = formula;
        }
コード例 #3
0
 void UpdatePageBackground(bool codeEvaluated)
 {
     CurrentCodeEditor.Document.SetPageBackground((codeEvaluated) ? DXColor.Empty : DXColor.FromArgb(0xFF, 0xBC, 0xC8), true);
     CurrentCodeClassEditor.Document.SetPageBackground((codeEvaluated) ? DXColor.Empty : DXColor.FromArgb(0xFF, 0xBC, 0xC8), true);
 }