incubator-odf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rafael Medeiros <mederaf...@gmail.com>
Subject How to set column width styles ?
Date Mon, 10 Feb 2014 10:14:21 GMT
Dear,




*How to set column width styles ?*        final OdfStyle
cabecalhoSubDinamico =
spreadsheetDocument.getOrCreateDocumentStyles().newStyle(EstiloHelper.STYLE_CABECALHO_SUB_DINAMICO,
OdfStyleFamily.TableCell);
        cabecalhoSubDinamico.setProperty(StyleTextPropertiesElement.Color,
"#000000");

cabecalhoSubDinamico.setProperty(StyleTextPropertiesElement.FontSize,
"10pt");

cabecalhoSubDinamico.setProperty(StyleTextPropertiesElement.FontWeight,
"bold");

cabecalhoSubDinamico.setProperty(StyleParagraphPropertiesElement.TextAlign,
"center");

cabecalhoSubDinamico.setProperty(StyleTableCellPropertiesElement.VerticalAlign,
"middle");

cabecalhoSubDinamico.setProperty(StyleTableCellPropertiesElement.Border,
"0.0007in solid #000000");

cabecalhoSubDinamico.setProperty(StyleTableCellPropertiesElement.BackgroundColor,
"#c0c0c0");
//
cabecalhoSubDinamico.setProperty(StyleTableCellPropertiesElement.WrapOption,
"wrap");


Atenciosamente,

Rafael Nunes
I'm free - Linux
Linux User #439174
http://www.linkedin.com/in/mederafael

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