/** * Creates a simple shape. This includes such shapes as lines, rectangles, * and ovals. * * @param anchor the child anchor describes how this shape is attached * to the group. * @return the newly Created shape. */ public XSSFConnector CreateConnector(XSSFChildAnchor anchor) { CT_Connector ctShape = ctGroup.AddNewCxnSp(); ctShape.Set(XSSFConnector.Prototype()); XSSFConnector shape = new XSSFConnector(GetDrawing(), ctShape); shape.parent = this; shape.anchor = anchor; shape.GetCTConnector().spPr.xfrm = (anchor.GetCTTransform2D()); return shape; }
public XSSFConnector CreateConnector(XSSFChildAnchor anchor) { CT_Connector ctShape = this.ctGroup.AddNewCxnSp(); ctShape.Set(XSSFConnector.Prototype()); XSSFConnector xssfConnector = new XSSFConnector(this.GetDrawing(), ctShape); xssfConnector.parent = this; xssfConnector.anchor = (XSSFAnchor)anchor; xssfConnector.GetCTConnector().spPr.xfrm = anchor.GetCTTransform2D(); return(xssfConnector); }
public XSSFSimpleShape CreateSimpleShape(XSSFChildAnchor anchor) { CT_Shape ctShape = this.ctGroup.AddNewSp(); ctShape.Set(XSSFSimpleShape.Prototype()); XSSFSimpleShape xssfSimpleShape = new XSSFSimpleShape(this.GetDrawing(), ctShape); xssfSimpleShape.parent = this; xssfSimpleShape.anchor = (XSSFAnchor)anchor; xssfSimpleShape.GetCTShape().spPr.xfrm = anchor.GetCTTransform2D(); return(xssfSimpleShape); }
/** * Constructs a textbox. * * @param anchor the child anchor describes how this shape is attached * to the group. * @return the newly Created textbox. */ public XSSFTextBox CreateTextbox(XSSFChildAnchor anchor) { CT_Shape ctShape = ctGroup.AddNewSp(); ctShape.Set(XSSFSimpleShape.Prototype()); XSSFTextBox shape = new XSSFTextBox(GetDrawing(), ctShape); shape.parent = this; shape.anchor = anchor; shape.GetCTShape().spPr.xfrm = (anchor.GetCTTransform2D()); return(shape); }
/** * Creates a simple shape. This includes such shapes as lines, rectangles, * and ovals. * * @param anchor the child anchor describes how this shape is attached * to the group. * @return the newly Created shape. */ public XSSFConnector CreateConnector(XSSFChildAnchor anchor) { CT_Connector ctShape = ctGroup.AddNewCxnSp(); ctShape.Set(XSSFConnector.Prototype()); XSSFConnector shape = new XSSFConnector(GetDrawing(), ctShape); shape.parent = this; shape.anchor = anchor; shape.GetCTConnector().spPr.xfrm = (anchor.GetCTTransform2D()); return(shape); }
/** * Constructs a textbox. * * @param anchor the child anchor describes how this shape is attached * to the group. * @return the newly Created textbox. */ public XSSFTextBox CreateTextbox(XSSFChildAnchor anchor) { CT_Shape ctShape = ctGroup.AddNewSp(); ctShape.Set(XSSFSimpleShape.Prototype()); XSSFTextBox shape = new XSSFTextBox(GetDrawing(), ctShape); shape.parent = this; shape.anchor = anchor; shape.GetCTShape().spPr.xfrm = (anchor.GetCTTransform2D()); return shape; }