Spire.Presentation

Spire.Presentation 4.7 supports setting the alignment of shape

We're pleased to announce the release of Spire.Presentation 4.7. This version supports to align shapes to Bottom, Left, Top, Center, Right, etc. It also fixes the bugs relating to font. More details are as follows.

New Features:

  • Supports setting the alignment of shape.
  • var shape = ppt.Slides[0].Shapes[0];
    shape.SetShapeAlignment(Spire.Presentation.ShapeAlignment.AlignBottom);
    shape.SetShapeAlignment(Spire.Presentation.ShapeAlignment.AlignLeft);
    shape.SetShapeAlignment(Spire.Presentation.ShapeAlignment.AlignTop);
    shape.SetShapeAlignment(Spire.Presentation.ShapeAlignment.AlignCenter);
    shape.SetShapeAlignment(Spire.Presentation.ShapeAlignment.AlignMiddle);
    shape.SetShapeAlignment(Spire.Presentation.ShapeAlignment.AlignRight);
    shape.SetShapeAlignment(Spire.Presentation.ShapeAlignment.DistributeHorizontally);
    shape.SetShapeAlignment(Spire.Presentation.ShapeAlignment.DistributeVertically);
    

Bug Fixes:

  • Fixes the issue that the font height and color of text cannot be obtained successfully.
  • Fixes the issue the default font height of text cannot be obtained successfully.
  • Fixes the issue the background color of inserted slide lost.

Click the link below to download Spire.Presentation 4.7
More information of Spire.Presentation new release or hotfix: