alexa
menu

Document Processing

    Show / Hide Table of Contents

    LoadOptions Class

    Represents the options used when loading a presentation or markdown document.

    Inheritance
    System.Object
    LoadOptions
    Namespace: Syncfusion.Presentation
    Assembly: Syncfusion.Presentation.Base.dll
    Syntax
    public class LoadOptions : Object

    Constructors

    LoadOptions()

    Declaration
    public LoadOptions()

    Properties

    FormatType

    Gets or sets the format type of the presentation to open.

    Declaration
    public FormatType FormatType { get; set; }
    Property Value
    Type Description
    FormatType

    The FormatType value.

    Examples
    //Create a new instance of LoadOptions.
    LoadOptions loadOptions = new LoadOptions();
    //Set the format type.
    loadOptions.FormatType = FormatType.Pptx;
    //Open the presentation with LoadOptions.
    IPresentation presentation = Presentation.Open("Input.pptx", loadOptions);
    //Save the presentation.
    presentation.Save("Output.pptx");
    //Close the presentation.
    presentation.Close();

    MdImportSettings

    Gets or sets the Markdown import settings used when opening a Markdown document for presentation conversion.

    Declaration
    public MdImportSettings MdImportSettings { get; set; }
    Property Value
    Type Description
    Syncfusion.Office.Markdown.MdImportSettings

    The MdImportSettings instance.

    Examples
    //Create a new instance of LoadOptions.
    LoadOptions loadOptions = new LoadOptions();
    //Set the format type.
    loadOptions.FormatType = FormatType.Markdown;
    //Set the Markdown import settings.
    loadOptions.MdImportSettings = new MdImportSettings();
    loadOptions.MdImportSettings.UseThematicBreakAsContentBreak = true;
    //Open the MD file with LoadOptions.
    IPresentation presentation = Presentation.Open("Input.md", loadOptions);
    //Save the presentation.
    presentation.Save("Output.pptx");
    //Close the presentation.
    presentation.Close();

    Password

    Gets or sets the password required to open the encrypted presentation.

    Declaration
    public string Password { get; set; }
    Property Value
    Type Description
    System.String

    The password.

    Examples
    //Create a new instance of LoadOptions.
    LoadOptions loadOptions = new LoadOptions();
    //Set the password for encrypted presentation.
    loadOptions.Password = "MYPASSWORD!@#$%";
    //Open the presentation with LoadOptions.
    IPresentation presentation = Presentation.Open("Input.pptx", loadOptions));
    //Save the presentation.
    presentation.Save("Output.pptx");
    //Close the presentation.
    presentation.Close();
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved