RenderingOptions

RenderingOptions class

Provides options that control how a presentation/slide is rendered.

public class RenderingOptions : SaveOptions, IRenderingOptions

Constructors

NameDescription
RenderingOptions()Default constructor.

Properties

NameDescription
DefaultRegularFont { get; set; }Returns or sets font used in case source font is not found. Read-write String.
InkOptions { get; }Provides options that control the look of Ink objects in exported document. Read-only IInkOptions
ProgressCallback { get; set; }Represents a callback object for saving progress updates in percentage. See IProgressCallback.
SlidesLayoutOptions { get; set; }Gets or sets the mode in which slides are placed on the page when exporting a presentation ISlidesLayoutOptions.
WarningCallback { get; set; }Returns of sets an object which receives warnings and decides whether loading process will continue or will be aborted. Read/write IWarningCallback.

Examples

[C#]
using (Presentation pres = new Presentation("pres.pptx"))
  {
  IRenderingOptions renderingOpts = new RenderingOptions();
  renderingOpts.NotesCommentsLayouting.NotesPosition = NotesPositions.BottomTruncated;
  
  pres.Slides[0].GetThumbnail(renderingOpts).Save("pres-Original.png", ImageFormat.Png);
  
  renderingOpts.DefaultRegularFont = "Arial Black";
  pres.Slides[0].GetThumbnail(renderingOpts).Save("pres-ArialBlackDefault.png", ImageFormat.Png);
  
  renderingOpts.DefaultRegularFont = "Arial Narrow";
  pres.Slides[0].GetThumbnail(renderingOpts).Save("pres-ArialNarrowDefault.png", ImageFormat.Png);
}

See Also