/** * Create a new border formatting structure if it does not exist, * otherwise just return existing object. * * @return - border formatting object, never returns <code>null</code>. */ public IBorderFormatting CreateBorderFormatting() { CT_Dxf dxf = GetDxf(true); CT_Border border; if (!dxf.IsSetBorder()) { border = dxf.AddNewBorder(); } else { border = dxf.border; } return(new XSSFBorderFormatting(border)); }
public IBorderFormatting CreateBorderFormatting() { CT_Dxf dxf = this.GetDxf(true); return((IBorderFormatting) new XSSFBorderFormatting(dxf.IsSetBorder() ? dxf.border : dxf.AddNewBorder())); }