/** * Creates a new client anchor and defaults all the anchor positions to 0. */ public XSSFClientAnchor() { cell1 = new CT_Marker(); cell1.col= (0); cell1.colOff=(0); cell1.row=(0); cell1.rowOff=(0); cell2 = new CT_Marker(); cell2.col=(0); cell2.colOff=(0); cell2.row=(0); cell2.rowOff=(0); }
public static CT_Marker Parse(XmlNode node, XmlNamespaceManager nameSpaceManager) { CT_Marker ctMarker = new CT_Marker(); foreach (XmlNode subnode in node.ChildNodes) { if (subnode.LocalName == "col") { ctMarker.col = Int32.Parse(subnode.InnerText); } else if (subnode.LocalName == "colOff") { ctMarker.colOff = Int64.Parse(subnode.InnerText); } else if (subnode.LocalName == "row") { ctMarker.row = Int32.Parse(subnode.InnerText); } else if (subnode.LocalName == "rowOff") { ctMarker.rowOff = Int64.Parse(subnode.InnerText); } } return ctMarker; }
/** * Create XSSFClientAnchor from existing xml beans * * @param cell1 starting anchor point * @param cell2 ending anchor point */ internal XSSFClientAnchor(CT_Marker cell1, CT_Marker cell2) { this.cell1 = cell1; this.cell2 = cell2; }
/** * Create XSSFClientAnchor from existing xml beans * * @param cell1 starting anchor point * @param cell2 ending anchor point */ protected XSSFClientAnchor(CT_Marker cell1, CT_Marker cell2) { this.cell1 = cell1; this.cell2 = cell2; }
internal void SetTo(CT_Marker to) { cell2 = to; }
internal void SetFrom(CT_Marker from) { cell1 = from; }