Blazor

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ExportModes - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ExportModes

    Specifies whether the diagram has to be exported as an image or it has to be converted as an image URL.

    Inheritance
    System.Object
    ExportModes
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class ExportModes : Enum
    Remarks
    To know more about using Export Modes, refer to this link:
    1. Printing and Exporting
    To apply data as Export Modes, use the below code.
    Examples
    <input type="button" value="Export" @onclick="@OnExport" />
    <SfDiagram ID = "diagram" Height="600px" @ref="@Diagram">
    </SfDiagram>
    @code{
        SfDiagram Diagram;
       private void OnExport()
       {
           //Sets the export option for diagram
           IExportOptions Options = new IExportOptions()
           {
               Mode = ExportModes.Data,
               //Sets the format for diagram export
               Format = FileFormats.SVG
           };
           Diagram.ExportDiagram(Options);
       }
    }

    Fields

    Data

    Downloads the Images in the browser.

    Declaration
    public const ExportModes Data
    Field Value
    Type Description
    ExportModes

    Download

    Return the diagram content as an image URL.

    Declaration
    public const ExportModes Download
    Field Value
    Type Description
    ExportModes

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved