IsType3D() 보호된 메소드

protected IsType3D ( ) : bool
리턴 bool
        private XmlElement CreateElement(int idx, string uniqueId = "")
        {
            XmlElement pointElement;

            if (_dic.Count == 0)
            {
                pointElement = (XmlElement)CreateNode(ExcelChartDataPoint.topNodePath);
            }
            else
            {
                pointElement = TopNode.OwnerDocument.CreateElement("c", "dPt", ExcelPackage.schemaChart);
                if (_dic.ContainsKey(idx))
                {
                    _dic[idx].TopNode.ParentNode.InsertAfter(pointElement, _dic[idx].TopNode);
                }
                else
                {
                    var first = _dic.Values.First().TopNode;
                    first.ParentNode.InsertBefore(pointElement, first);
                }
            }
            if (!string.IsNullOrEmpty(uniqueId))
            {
                if (_chart.IsType3D())
                {
                    pointElement.InnerXml = "<c:spPr><a:noFill/><a:ln><a:noFill/></a:ln><a:effectLst/><a:sp3d contourW=\"25400\"><a:contourClr><a:schemeClr val=\"lt1\"/></a:contourClr></a:sp3d></c:spPr><c:extLst><c:ext xmlns:c16=\"http://schemas.microsoft.com/office/drawing/2014/chart\" uri = \"{C3380CC4-5D6E-409C-BE32-E72D297353CC}\"><c16:uniqueId val=\"{" + uniqueId + "}\"/></c:ext></c:extLst>";
                }
                else
                {
                    pointElement.InnerXml = "<c:extLst><c:ext xmlns:c16=\"http://schemas.microsoft.com/office/drawing/2014/chart\" uri = \"{C3380CC4-5D6E-409C-BE32-E72D297353CC}\"><c16:uniqueId val=\"{" + uniqueId + "}\"/></c:ext></c:extLst>";
                }
            }
            return(pointElement);
        }
예제 #2
0
 internal ExcelChartMarker(ExcelChart chart, XmlNamespaceManager ns, XmlNode topNode, string[] schemaNodeOrder) : base(ns, topNode)
 {
     AddSchemaNodeOrder(schemaNodeOrder, new string[] { "symbol", "size", "spPr" });
     _chart        = chart;
     _allowMarkers = chart.IsType3D();
 }
 internal static bool ForbiddDataLabelPosition(ExcelChart _chart)
 {
     return((_chart.IsType3D() && !_chart.IsTypePie() && _chart.ChartType != eChartType.Line3D) ||
            _chart.IsTypeDoughnut());
 }