• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class PresentationHtmlExporter

Extension methods for exporting a Presentation to HTML.

Inheritance
object
PresentationHtmlExporter
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Presentation.Export.Html
Assembly: DRIT.Presentation.dll
Syntax
public static class PresentationHtmlExporter

Methods

RenderSlideToHtmlString(Presentation, int, HtmlOptions?)

Renders a single slide to an HTML string (the full HTML document for that one slide, including <!DOCTYPE html>).

Declaration
public static string RenderSlideToHtmlString(this Presentation presentation, int slideIndex, HtmlOptions? options = null)
Parameters
Type Name Description
Presentation presentation

The owner presentation.

int slideIndex

Zero-based slide index.

HtmlOptions options

HTML export options. When null, default options exporting only the specified slide are used.

Returns
Type Description
string

The HTML document as a UTF-8 string.

SaveAsHtml(Presentation, Stream, HtmlOptions?)

Writes the presentation as HTML to stream. The stream is left open; the caller is responsible for disposing it.

Declaration
public static void SaveAsHtml(this Presentation presentation, Stream stream, HtmlOptions? options = null)
Parameters
Type Name Description
Presentation presentation
Stream stream
HtmlOptions options

SaveAsHtml(Presentation, string, HtmlOptions?)

Saves the presentation as an HTML file at filePath. Any existing file is overwritten.

Declaration
public static void SaveAsHtml(this Presentation presentation, string filePath, HtmlOptions? options = null)
Parameters
Type Name Description
Presentation presentation
string filePath
HtmlOptions options
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX