Search code examples
c#exceltext-formattingspreadsheetgear

Extracting the details of varied text formatting within a single SpreadsheetGear cell


I have some text in cells which are formatted in different ways, let's say: "This is mixed style within a single cell"

I can access the text content and IRange's Interior property provides color data (among others), and IRange also have Style property which provides Font data, which can tell if the text is bold or italic. In my case however I may have different styles within a single cell. How can I extract that?


Solution

  • In VBA you would examine the Characters property of the Range object. Is there something similar in C#?