예제 #1
0
        void MapObject(PlotArea plotArea, DocumentObjectModel.Shapes.Charts.PlotArea domPlotArea)
        {
            plotArea.BottomPadding = domPlotArea.BottomPadding.Point;
            plotArea.RightPadding = domPlotArea.RightPadding.Point;
            plotArea.LeftPadding = domPlotArea.LeftPadding.Point;
            plotArea.TopPadding = domPlotArea.TopPadding.Point;

            if (!domPlotArea.IsNull("LineFormat"))
                LineFormatMapper.Map(plotArea.LineFormat, domPlotArea.LineFormat);
            if (!domPlotArea.IsNull("FillFormat"))
                FillFormatMapper.Map(plotArea.FillFormat, domPlotArea.FillFormat);
        }
예제 #2
0
        /// <summary>
        /// Implements the deep copy of the object.
        /// </summary>
        protected override object DeepCopy()
        {
            PlotArea plotArea = (PlotArea)base.DeepCopy();

            if (plotArea._lineFormat != null)
            {
                plotArea._lineFormat         = plotArea._lineFormat.Clone();
                plotArea._lineFormat._parent = plotArea;
            }
            if (plotArea._fillFormat != null)
            {
                plotArea._fillFormat         = plotArea._fillFormat.Clone();
                plotArea._fillFormat._parent = plotArea;
            }
            return(plotArea);
        }
예제 #3
0
 internal static void Map(PlotArea plotArea, DocumentObjectModel.Shapes.Charts.PlotArea domPlotArea)
 {
     PlotAreaMapper mapper = new PlotAreaMapper();
     mapper.MapObject(plotArea, domPlotArea);
 }