Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
To change the font and color of a cell using Aspose.Cells.GridDesktop, please follow the steps below:
There are many useful properties and methods offered by the Style object that can be used by developers to customize the style according to their requirements. The code below demonstrates how to apply a custom style to a cell.
Using the Style object, we can draw borders of a cell very easily. The borders can be drawn in any color. Moreover, developers have the flexibility to choose a specific type of line that will be used to draw borders around the cell. Developers can use the SetBorderLine and SetBorderColor methods of the Style object to draw borders of any type and color. Similarly, to get border information of any cell, developers can also make use of the GetBorderLine and GetBorderColor methods of the Style object.
There are six types of borders supported by Aspose.Cells.GridDesktop as follows:
A border is composed of a line. Changing the type of line changes the appearance of a border. There are many types of border lines supported by Aspose.Cells.GridDesktop, which are also listed below:
Aspose.Cells.GridDesktop also provides various number format settings. There are 58 built‑in number formats offered by Aspose.Cells.GridDesktop. To see a complete list of all supported number formats, please refer to Supported Number Formats.
All built‑in number formats are assigned an Index number. For example, the Index number of the 0.00E+00 number format is 11. To use a built‑in number format in any cell, developers can set the NumberFormat property of the Style object to the Index number of that specific number format. However, if developers need to have their own custom number format, they can also use the Custom property of the Style object.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.