Hi,
We have a spreadsheet with some bold text inside the cell. how can we just extract that bold text through Aspose .cell?
I have attached the sample file.
Example:
Cell Value:
Vip To Go I only want to extract "Vip". Thanks. Laura
|
Hi,
We have a spreadsheet with some bold text inside the cell. how can we just extract that bold text through Aspose .cell?
I have attached the sample file.
Example:
Cell Value:
Vip To Go I only want to extract "Vip". Thanks. Laura
|
Hi,
Thanks for your posting and using Aspose.Cells for .NET.
Please download and use the latest version:
Aspose.Cells
for .NET v7.2.2.1
First you need to call Cell.GetCharacters(), it will return you array of FontSetting, from that you can find how many characters are bold.
In case, if it returns null, then you should check the Cell.GetStyle() i.e Style object.
Please see the full code below and its output.
C#