News Category

Spire.Presentation 6.11.2 supports getting the fill color of table cells

2021-11-12 09:48:02

We are happy to announce the release of Spire.Presentation 6.11.2. This version supports getting the fill color of table cells as well as supports setting the data label range for charts. In addition, it enhances the conversion from PowerPoint to images and also fixes the issue occurred in the process of inserting clustered column charts. More details are listed as follows.

Here is a list of changes made in this release

Category ID Description
New feature SPIREPPT-1687 Supports getting the fill color of table cells.
table.TableRows[i][j].DisplayColor;
New feature SPIREPPT-1701 Supports setting the data label range for charts.
Presentation ppt = new Presentation();
IChart chart = ppt.Slides[0].Shapes.AppendChart(ChartType.ColumnStacked, new RectangleF(100, 100, 500, 400));
CellRange cellRange = chart.ChartData["F1"];
cellRange.Text = "aaa";
cellRange = chart.ChartData["F2"];
cellRange.Text = "bbb";
cellRange = chart.ChartData["F3"];
cellRange.Text = "ccc";
cellRange = chart.ChartData["F4"];
cellRange.Text = "ddd";
chart.Series[0].DataLabelRanges = chart.ChartData["F1", "F4"];
ChartDataLabel dataLabel1 = chart.Series[0].DataLabels.Add();
dataLabel1.ID = 0;
dataLabel1.LabelValueVisible = true;
dataLabel1.ShowDataLabelsRange = true;
New feature SPIREPPT-1707 Supports to get the path data of the custom animation.
foreach (AnimationEffect effect in shape.Slide.Timeline.MainSequence)
{
    if (effect.ShapeTarget.Equals(shape as Spire.Presentation.Shape))
    {
        MotionPath path = ((AnimationMotion)effect.CommonBehaviorCollection[0]).Path;
        foreach (MotionCmdPath motionCmdPath in path)
        {
            PointF[] points = motionCmdPath.Points;
            MotionCommandPathType type = motionCmdPath.CommandType;
        }
    }
}
New feature SPIREPPT-1708 Adds a new method "IShape.SaveAsImage()" to convert shape to images.
Image image = shape.SaveAsImage();
Bug SPIREPPT-1453 Fixes the issue that the newly inserted shape did not have default line width and color.
Bug SPIREPPT-1667 Fixes the issue that the images were not clear enough after converting PPT to images.
Bug SPIREPPT-1699 Fixes the issue that it couldn't get the background color of the theme.
Bug SPIREPPT-1709 Fixes the issue that the content was incorrect after converting shape to image.
Bug SPIREPPT-1717 Fixes the issue that it didn't get the correct display color of the TextRange.
Bug SPIREPPT-1731 Fixes the issue that the inserted clustered column chart was incorrect.
Click the link below to download Spire.Presentation 6.11.2:
More information of Spire.Presentation new release or hotfix: