/** * @return whether this run of text is formatted as underlined text. */ public boolean isUnderline() { return findDefinedProperty(props -> props.isSetU(), props -> props.getU()) .map(underline -> underline != STTextUnderlineType.NONE) .orElse(false); }
@Override public boolean fetch(CTTextCharacterProperties props){ if (props != null && props.isSetU()) { setValue(props.getU() != STTextUnderlineType.NONE); return true; } return false; } };
/** * @return which underline style this run of text is formatted with. */ public UnderlineType getUnderline() { return findDefinedProperty(props -> props.isSetU(), props -> props.getU()) .map(underline -> UnderlineType.valueOf(underline)) .orElse(null); }
/** * @return whether this run of text is formatted as underlined text */ public boolean isUnderline(){ CTTextCharacterProperties rPr = getRPr(); if(rPr.isSetU()){ return rPr.getU() != STTextUnderlineType.NONE; } return false; }
/** * @return whether this run of text is formatted as underlined text. */ public boolean isUnderline() { return findDefinedProperty(props -> props.isSetU(), props -> props.getU()) .map(underline -> underline != STTextUnderlineType.NONE) .orElse(false); }
public boolean fetch(CTTextCharacterProperties props){ if(props.isSetU()){ setValue(props.getU() != STTextUnderlineType.NONE); return true; } return false; } };
/** * @return whether this run of text is formatted as underlined text */ public boolean isUnderline(){ CTTextCharacterProperties rPr = getRPr(); if(rPr.isSetU()){ return rPr.getU() != STTextUnderlineType.NONE; } return false; }
/** * @return which underline style this run of text is formatted with. */ public UnderlineType getUnderline() { return findDefinedProperty(props -> props.isSetU(), props -> props.getU()) .map(underline -> UnderlineType.valueOf(underline)) .orElse(null); }
@Override public boolean fetch(CTTextCharacterProperties props){ if (props != null && props.isSetU()) { setValue(props.getU() != STTextUnderlineType.NONE); return true; } return false; } };