Example usage for org.apache.poi.xwpf.usermodel XWPFRun isHighlighted

List of usage examples for org.apache.poi.xwpf.usermodel XWPFRun isHighlighted

Introduction

In this page you can find the example usage for org.apache.poi.xwpf.usermodel XWPFRun isHighlighted.

Prototype

@Override
    public boolean isHighlighted() 

Source Link

Usage

From source file:offishell.msoffice.WordTestHelper.java

License:MIT License

/**
 * <p>/* w  ww.j  a v a 2s  .co m*/
 * Assertion helper.
 * </p>
 * 
 * @param para
 * @param value
 */
public default void checkRun(XWPFRun run, Assertion value) {
    assert value.of(run.text());
    assert value.of(run.getFontFamily());
    assert value.of(run.getFontSize());
    assert value.of(run.isBold());
    assert value.of(run.isCapitalized());
    assert value.of(run.isDoubleStrikeThrough());
    assert value.of(run.isEmbossed());
    assert value.of(run.isHighlighted());
    assert value.of(run.isImprinted());
}