You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Chenghao Situ <si...@yahoo.com.cn> on 2008/07/02 19:15:12 UTC

How to get the index of the font in excel?

Hi,
   
  If a cell's value is "test string", and now only the "ing" is Strikeout.
  How can I get the exact index of this font's startIndex and endIndex?
   
  And if "tes" and "ing" are Strikeout, how can get the indexs for "tes" and "ing" seperatly?
   
  Thanks.

       
---------------------------------
 雅虎邮箱,您的终生邮箱!

Re: How to get the index of the font in excel?

Posted by Nick Burch <ni...@torchbox.com>.
On Thu, 3 Jul 2008, Chenghao Situ wrote:
> If a cell's value is "test string", and now only the "ing" is Strikeout. 
> How can I get the exact index of this font's startIndex and endIndex?

Your text will be a rich text string. That'll provide you with the 
information you're after:
http://poi.apache.org/apidocs/org/apache/poi/hssf/usermodel/HSSFRichTextString.html

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org