示例#1
0
        public void GetSetClearIsBold()
        {
            #region radspreadsheet-features-formatting-cells_1
            Workbook      workbook  = new Workbook();
            Worksheet     worksheet = workbook.Worksheets.Add();
            CellSelection selection = worksheet.Cells[0, 0, 5, 5];

            selection.SetIsBold(true);
            bool isBold = selection.GetIsBold().Value;
            selection.ClearIsBold();
            #endregion
        }
        public void GetSetClearIsBold()
        {
            #region radspreadprocessing-working-with-cells-get-set-clear-properties_1
            Workbook      workbook  = new Workbook();
            Worksheet     worksheet = workbook.Worksheets.Add();
            CellSelection selection = worksheet.Cells[0, 0, 5, 5];

            selection.SetIsBold(true);
            bool isBold = selection.GetIsBold().Value;
            selection.ClearIsBold();
            #endregion
        }
        private void RegisterMissingPdfFontsBeforeExport()
        {
            CellRange usedCellRange = this.Worksheet.UsedCellRange;

            for (int row = 0; row <= usedCellRange.ToIndex.RowIndex; row++)
            {
                for (int column = 0; column <= usedCellRange.ToIndex.ColumnIndex; column++)
                {
                    CellSelection cell           = this.Worksheet.Cells[new CellIndex(row, column)];
                    string        fontFamilyName = cell.GetFontFamily().Value.GetActualValue(this.Worksheet.Workbook.Theme).ToString();
                    bool          isItalic       = cell.GetIsItalic().Value;
                    bool          isBold         = cell.GetIsBold().Value;

                    this.RegisterFont(fontFamilyName, isItalic, isBold);
                }
            }
        }