/** * @return whether this run of text is formatted as striked text. */ public boolean isStrikeThrough() { return findDefinedProperty(props -> props.isSetStrike(), props -> props.getStrike()) .map(strike -> strike != STTextStrikeType.NO_STRIKE) .orElse(false); }
@Override public boolean fetch(CTTextCharacterProperties props){ if(props != null && props.isSetStrike()) { setValue(props.getStrike() != STTextStrikeType.NO_STRIKE); return true; } return false; } };
/** * @return whether a run of text will be formatted as strikethrough text. Default is false. */ public boolean isStrikethrough() { CTTextCharacterProperties rPr = getRPr(); if(rPr.isSetStrike()){ return rPr.getStrike() != STTextStrikeType.NO_STRIKE; } return false; }
/** * @return which strike style this run of text is formatted with. */ public StrikeType getStrikeThrough() { return findDefinedProperty(props -> props.isSetStrike(), props -> props.getStrike()) .map(strike -> StrikeType.valueOf(strike)) .orElse(null); }
/** * @return whether this run of text is formatted as striked text. */ public boolean isStrikeThrough() { return findDefinedProperty(props -> props.isSetStrike(), props -> props.getStrike()) .map(strike -> strike != STTextStrikeType.NO_STRIKE) .orElse(false); }
public boolean fetch(CTTextCharacterProperties props){ if(props.isSetStrike()){ setValue(props.getStrike() != STTextStrikeType.NO_STRIKE); return true; } return false; } };
@Override public boolean fetch(CTTextCharacterProperties props){ if(props != null && props.isSetStrike()) { setValue(props.getStrike() != STTextStrikeType.NO_STRIKE); return true; } return false; } };
/** * @return whether a run of text will be formatted as strikethrough text. Default is false. */ public boolean isStrikethrough() { CTTextCharacterProperties rPr = getRPr(); if(rPr.isSetStrike()){ return rPr.getStrike() != STTextStrikeType.NO_STRIKE; } return false; }
/** * @return which strike style this run of text is formatted with. */ public StrikeType getStrikeThrough() { return findDefinedProperty(props -> props.isSetStrike(), props -> props.getStrike()) .map(strike -> StrikeType.valueOf(strike)) .orElse(null); }