Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 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;
 }