Browse our Products

Aspose.Slides for .NET 20.8 Release Notes

KeySummaryCategory
SLIDESNET-42018Animations fail if User Path effect is combined with Scale/GrowShrink effectInvestigation
SLIDESNET-42091Support to Redact text in Aspsoe.SlidesFeature
SLIDESNET-42044Support for GetRange() method for chart dataFeature
SLIDESNET-41864SketchStyle property supportFeature
SLIDESNET-42069MathML export is incorrect for MathParagraph.WriteAsMathMlBug
SLIDESNET-42068Failed to save PPT file - Parameter is not validBug
SLIDESNET-42058Aspose.Slides 20.6: A NullReferenceException is thrown on getting presentation infoBug
SLIDESNET-42057Fails to round values of data labels for Pie and Pyramid chartsBug
SLIDESNET-42056ArrayIndexOutOfBoundsException on saving presentation with Pyramid ChartBug
SLIDESNET-42052Wrong Rect X, Y positions read for paragraphBug
SLIDESNET-42051SVG to GroupShape - Image disappearsBug
SLIDESNET-42050“Unable to cast object of type” exception is thrown when rendering PPTX fileBug
SLIDESNET-42049Slides are changed on cloningBug
SLIDESNET-42046ArgumentOutOfRangeException on loading Presentation fileBug
SLIDESNET-42033Opening and saving .ppt file cause changing color of images backgroundBug
SLIDESNET-42031Last animation effect not appliedBug
SLIDESNET-42029ODP to PPTX - IndexOutOfRangeException on exporting ODP to PPTXBug
SLIDESNET-42028InvalidCastException on exporting PPT to PDFBug
SLIDESNET-42023Object reference not set to an instance of an object exception is thrown when loading PPTX fileBug
SLIDESNET-42022PPTX to ODP - Border sizes and colours in tables are not preservedBug
SLIDESNET-42021ODP to PPTX - Table border changes sizeBug
SLIDESNET-42014When converting from ODP to PPTX and back ODP - table format gets alteredBug
SLIDESNET-42012Exception is thrown on calling ValidateChartLayout methodBug
SLIDESNET-42003Chart series data is read as nullBug
SLIDESNET-41993Chart lines getting changed on cloning slideBug
SLIDESNET-41983Glow effects are missing in generated thumbnailBug
SLIDESNET-41969Slide Preview: Fill Pattern for Rotated Shapes Is Rotated IncorrectlyBug
SLIDESNET-41943Wrong shadow effects in exported PDFBug
SLIDESNET-41925After converting the chart to SVG the legend entry titles are not ordered like in the source chartBug
SLIDESNET-40570Wrong tab widths in SVGBug
SLIDESNET-40003Wrong text formatting in notesBug
SLIDESNET-35233PushPin presentation theme rendering issuesBug
SLIDESNET-31165Shadows are not drawing under the chart bubblesBug

Public API Changes

IChartData.GetRange method has been added

IChartData.GetRange method has been added. The method returns the workbook data range that is used by the chart. IChartData.GetRange method returns a string value.

The returned value looks like “Sheet1!$A$1:$D$5” where “Sheet1” is a source worksheet and $A$1:$D$5 is a cell range.

Using IChartData.GetRange() method example.

using (Presentation pres = new Presentation())
{
    IChart chart = pres.Slides[0].Shapes.AddChart(ChartType.ClusteredColumn, 10, 10, 400, 300);
    string result = chart.ChartData.GetRange();
}

Shape Sketched Style effect has been added

Sketched Style effect feature helps to change the appearance of shapes in a slide forcing shapes to look like a sketch. It applies a hand-drawn (or “sketched”) styling to shapes.

The picture below demonstrates PowerPoint UI elements to apply this effect to a shape.

todo:image_alt_text or todo:image_alt_text

In Aspose.Slides, to provide the same options for the Sketched Style effect, enum LineSketchType and interface ISketchFormat have been added. SketchFormat property (int SketchFormat type) has been added to the ILineFormat interface.

LineSketchType Enum

The LineSketchType determines the preset sketched style.

Below is the definition of the LineSketchType enum:

public enum LineSketchType
{
    /// <summary>
    /// Specifies that a shape Sketch effect is undefined. 
    /// </summary>
    NotDefined = -1,
    /// <summary>
    /// Specifies that a shape has no Sketch effect. This is equivalent to this property being empty.
    /// </summary>
    None = 0,
    /// <summary>
    /// Specifies that a shape has the Curved effect, which turns each edge of the shape into one big gentle curve.
    /// </summary>
    Curved = 1,
    /// <summary>
    /// Specifies that a shape has the Freehand effect, which most closely resembles an imperfectly drawn line.
    /// </summary>
    Freehand = 2,
    /// <summary>
    /// Specifies that a shape has the Scribble effect, which has exaggerated oscillation as if drawn purposely messy.
    /// </summary>
    Scribble = 3
}

ISketchFormat Interface

The ISketchFormat interface with the SketchFormat implementation class has been added:

/// <summary>
/// Represents properties for lines sketch format.
/// </summary>
public interface ISketchFormat
{
    /// <summary>
    /// Returns or sets the sketch type.
    /// Read/write <see cref="Slides.LineSketchType"/>.
    /// </summary>
    LineSketchType SketchType { get; set; }
}

SketchFormat property of ISketchFormat type has been added into ILineFormat:

/// <summary>
/// Returns the sketch format of a line.
/// Read-only <see cref="ISketchFormat"/>.
/// </summary>
ISketchFormat SketchFormat { get; }

Example

The example below demonstrates how to set sketchy type for a shape:

using (Presentation pres = new Presentation())
{
    IAutoShape shape = pres.Slides[0].Shapes.AddAutoShape(ShapeType.Rectangle, 20, 20, 300, 150);
    shape.FillFormat.FillType = FillType.NoFill;

    // Transform shape to sketch of a freehand style
    shape.LineFormat.SketchFormat.SketchType = LineSketchType.Freehand;
    
    pres.Save("sketch.pptx", SaveFormat.Pptx);
}

The shape border line style generated via the code snippet above has the following appearance:

todo:image_alt_text