poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Stette <jan.ste...@gmail.com>
Subject Re: Getting strikethrough info from cells
Date Wed, 07 Apr 2010 14:59:31 GMT
That's just what I was looking for, thanks!

Jan

On 7 April 2010 15:19, Paul Spencer <paulsp@apache.org> wrote:

> Jan,
> In 3.6, I use the following:
> >               // Ignore cells marked with Strike through font attribute
> >               CellStyle style = cell.getCellStyle();
> >               Font cellFont = cell.getSheet().getWorkbook().getFontAt(
> >                               style.getFontIndex());
> >               if (cellFont.getStrikeout()) {
> >                       return;
> >               }
>
> Paul Spencer
>
>
> On Apr 7, 2010, at 9:25 AM, Jan Stette wrote:
>
> > Hi all,
> >
> > is there a way to get details about whether a cell has a "strikethrough"
> > style applied?  I can't find any reference to this in either the
> CellStyle
> > class or the HSSFRichTextString class.
> >
> > Thanks,
> > Jan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
> For additional commands, e-mail: user-help@poi.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message