ultraSpreadsheet1.ActiveSelectionCellRangeFormat.Font.Bold = ExcelDefaultableBoolean.True;
This topic explains how to set or obtain active selection’s formatting.
The following table lists the concept and topics required as a prerequisite to understanding this topic.
This topic contains the following sections:
The UltraSpreadsheet control provides a special property named ActiveSelectionCellRangeFormat of type SpreadsheetCellRangeFormat which can be used to set or obtain different formatting aspects of the active selection, like font properties, alignments, indentation and more.
You can bind some of the properties of this object to different UI elements (like toggle buttons or text boxes) and they will reflect or manipulate the formatting of the active selection’s content.
The following example demonstrates setting the formatting object’s Bold property of the control’s active selection text’s bold state.
Set Bold property:
In C#:
ultraSpreadsheet1.ActiveSelectionCellRangeFormat.Font.Bold = ExcelDefaultableBoolean.True;
In VB#:
ultraSpreadsheet1.ActiveSelectionCellRangeFormat.Font.Bold = ExcelDefaultableBoolean.True
The following topics provide additional information related to this topic.