Package com.aspose.cells

Examples of com.aspose.cells.Font


    //Setting the comment note
    comment.setNote("Hello Aspose!");
   
    //Setting the font size of a comment to 14
    Font font = comment.getFont();
    font.setSize(14);
    //Setting the font of a comment to bold
    font.setBold(true);

    //Setting the height of the font to 10
    comment.setHeightCM(10);

    //Setting the width of the font to 2
View Full Code Here


    Cell cell = cells.get("A1");
    cell.setValue("This is Aspose test of fonts!");

    //Setting the font name to "Times New Roman"
    Style style = cell.getStyle();
    Font font = style.getFont();
    font.setName("Courier New");
    font.setSize(24);
    font.setBold(true);
    font.setUnderline(FontUnderlineType.SINGLE);
    font.setColor(Color.getBlue());
    font.setStrikeout(true);
    //font.setSubscript(true);

    cell.setStyle(style);

    //Saving the modified Excel file in default format
View Full Code Here

//Adding some value to the cell
cell.setValue("Hello Aspose!");

//Setting the custom color to the font
style = cell.getStyle();
Font font = style.getFont();
font.setColor(color);

cell.setStyle(style);
   
    //Saving the Excel file
    workbook.save("data/AsposeColors.xls");
View Full Code Here

TOP

Related Classes of com.aspose.cells.Font

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.