/** * Returns the alignment that is applied to the paragraph. * * If this attribute is omitted, then a value of left is implied. * * @return alignment that is applied to the paragraph */ public TextAlignment getTextAlignment() { return findDefinedParagraphProperty(props -> props.isSetAlgn(), props -> props.getAlgn()) .map(align -> TextAlignment.valueOf(align)).orElse(null); }
public boolean fetch(CTTextParagraphProperties props){ if(props.isSetAlgn()){ TextAlign val = TextAlign.values()[props.getAlgn().intValue() - 1]; setValue(val); return true; } return false; } };
public boolean fetch(CTTextParagraphProperties props){ if(props.isSetAlgn()){ TextAlign val = TextAlign.values()[props.getAlgn().intValue() - 1]; setValue(val); return true; } return false; } };
/** * Returns the alignment that is applied to the paragraph. * * If this attribute is omitted, then a value of left is implied. * * @return alignment that is applied to the paragraph */ public TextAlignment getTextAlignment() { return findDefinedParagraphProperty(props -> props.isSetAlgn(), props -> props.getAlgn()) .map(align -> TextAlignment.valueOf(align)).orElse(null); }
public boolean fetch(CTTextParagraphProperties props){ if(props.isSetAlgn()){ TextAlign val = TextAlign.values()[props.getAlgn().intValue() - 1]; setValue(val); return true; } return false; } };
public boolean fetch(CTTextParagraphProperties props){ if(props.isSetAlgn()){ TextAlign val = TextAlign.values()[props.getAlgn().intValue() - 1]; setValue(val); return true; } return false; } };
public boolean fetch(CTTextParagraphProperties props){ if(props.isSetAlgn()){ TextAlign val = TextAlign.values()[props.getAlgn().intValue() - 1]; setValue(val); return true; } return false; } };