Enhanced PowerPoint shapes capabilities using Aspose.Slides

Here comes new release of Aspose.Slides 19.8 for .NET, Java and C++, which contains a lot of new features. In this blog, we will explore different enhanced features improving PowerPoint shapes capabilities. The shapes in a presentation could be distinguished by the Alternative Text or Shape Name property. The Alternative Text property can be read or set by using Aspose.Slides as well as Microsoft PowerPoint. By using this property, one can tag a shape and can perform different operations; such as removing a shape, hiding a shape or reordering shapes on a slide.

In following sections, I will give you walk through of new features included in API.

Hiding Shapes

In this new release, we have provided feature to hide any shape. First, one need to identify the desired shape using Alternative Text property. Then using following example code hiding of shapes is achieved in API.

The similar Java based example for this is:

The similar C++ based example for this is:

Get Effective Properties of Camera

Aspose.Slides provide feature to get effective properties of the camera. For this purpose, the Camera Effective Data class has been added in Aspose.Slides. Camera Effective Data class represents an immutable object which contains effective camera properties. The purpose of this property is to get camera properties from presentation file.

The similar Java based example for this is:

The similar C++ based example for this is:

Get Effective Font Height Value

In this new release, the support for getting effective font height value has also been made available. The following example demonstrates the portion’s effective font height value changing after setting local font height values on different presentation structure levels. 

The similar Java based example for this is:

The similar C++ based example for this is:

Setting Layout Mode of Chart Plot Area

Setting layout mode for chart plot area is one of frequently used feature and has now been introduced in API as well. For this purpose, a property LayoutTargetType has been added to ChartPlotArea class and IChartPlotArea interface. If the layout of the plot area is defined manually then this property specifies whether to layout the plot area by its inside (not including axis and axis labels) or outside (including axis and axis labels). There are two possible values which are defined in LayoutTargetType enum.

The following examples demonstrate how to Set Layout Mode of chart using API.

The similar Java based example for this is:

The similar C++ based example for this is:

Get Effective Fill Format for Table

Aspose.Slides provides feature to get effective fill formatting for different table logic parts. For this purpose, the IFillFormatEffectiveData interface has been added in Aspose.Slides, which contains effective fill formatting properties. One thing to note is that cell formatting always has higher priority than row formatting, a row has higher priority than column and column higher that whole table. The CellFormatEffectiveData properties are always used to draw the table.

The following code sample shows how to get effective fill formatting for different table logic parts.

The similar Java based example for this is:

The similar C++ based example for this is:

Set File Type for an Embedding Object

Now, API also provides feature to set file type of an embedded object. These feature allow to get OLE object as a parameter. So now OLE object contains its type and PowerPoint can open created OLE objects.

The following example shows how to set file type for an embedding object:

The similar Java based example for this is:

The similar C++ based example for this is:

Wait, there’s many other features, enhancement, and bug fixes included in this release. Here you can get the detail!

When time allows you can check out API examples at Github, talk about this release and other API related issues in our forum.