private XSSFAnchor GetAnchorFromIEGAnchor(IEG_Anchor ctAnchor) { CT_Marker ctFrom = null, ctTo = null; if (ctAnchor is CT_TwoCellAnchor) { ctFrom = ((CT_TwoCellAnchor)ctAnchor).from; ctTo = ((CT_TwoCellAnchor)ctAnchor).to; } else if (ctAnchor is CT_OneCellAnchor) { ctFrom = ((CT_OneCellAnchor)ctAnchor).from; } XSSFAnchor anchor = new XSSFClientAnchor(ctFrom, ctTo); return(anchor); }
private XSSFAnchor GetAnchorFromIEGAnchor(IEG_Anchor ctAnchor) { CT_Marker ctFrom=null, ctTo=null; if (ctAnchor is CT_TwoCellAnchor) { ctFrom = ((CT_TwoCellAnchor)ctAnchor).from; ctTo = ((CT_TwoCellAnchor)ctAnchor).to; } else if (ctAnchor is CT_OneCellAnchor) { ctFrom = ((CT_OneCellAnchor)ctAnchor).from; } XSSFAnchor anchor = new XSSFClientAnchor(ctFrom, ctTo); return anchor; }