/** * Create a new pattern formatting structure if it does not exist, * otherwise just return existing object. * * @return - pattern formatting object, never returns <code>null</code>. */ public IPatternFormatting CreatePatternFormatting() { CT_Dxf dxf = GetDxf(true); CT_Fill fill; if (!dxf.IsSetFill()) { fill = dxf.AddNewFill(); } else { fill = dxf.fill; } return(new XSSFPatternFormatting(fill)); }
public IPatternFormatting CreatePatternFormatting() { CT_Dxf dxf = this.GetDxf(true); return((IPatternFormatting) new XSSFPatternFormatting(dxf.IsSetFill() ? dxf.fill : dxf.AddNewFill())); }