Class MarkdownSaveOptions
Contents
[
Hide
]MarkdownSaveOptions class
Represents the save options for markdown.
public class MarkdownSaveOptions : SaveOptions
Constructors
| Name | Description | 
|---|---|
| MarkdownSaveOptions() | Creates options for saving markdown document | 
Properties
| Name | Description | 
|---|---|
| AlignColumnPadding { get; set; } | Indicates whether column alignment is enabled for generated Markdown tables. When enabled, columns are aligned by padding cell content with the specified character(typically ’ ’ for spaces). Set to ‘\0’ to disable column alignment (default). | 
| CachedFileFolder { get; set; } | The folder for temporary files that may be used as data cache.(Inherited from SaveOptions.) | 
| CalculateFormula { get; set; } | Indicates whether to calculate formulas before saving markdown file. | 
| CheckExcelRestriction { get; set; } | Whether check restriction of excel file when user modify cells related objects. For example, excel does not allow inputting string value longer than 32K. When you input a value longer than 32K, it will be truncated.(Inherited from SaveOptions.) | 
| ClearData { get; set; } | Make the workbook empty after saving the file.(Inherited from SaveOptions.) | 
| CreateDirectory { get; set; } | If true and the directory does not exist, the directory will be automatically created before saving the file.(Inherited from SaveOptions.) | 
| Encoding { get; set; } | Gets and sets the default encoding. | 
| EncryptDocumentProperties { get; set; } | Indicates whether encrypt document properties when saving as .xls file. The default value is true.(Inherited from SaveOptions.) | 
| ExportHyperlinkAsReference { get; set; } | Indicates whether to export hyperlink using reference definitions instead of inline format. The default value is false. | 
| ExportImagesAsBase64 { get; set; } | Specifies whether images are saved in Base64 format to Markdown. The default value is true. | 
| FormatStrategy { get; set; } | Gets and sets the format strategy when exporting the cell value as string. | 
| ImageOptions { get; } | Get the ImageOrPrintOptions object before exporting | 
| LightCellsDataProvider { get; set; } | The Data provider to provide cells data for saving workbook in light mode. | 
| LineSeparator { get; set; } | Gets and sets the line separator. | 
| MergeAreas { get; set; } | Indicates whether merge the areas of conditional formatting and validation before saving the file.(Inherited from SaveOptions.) | 
| RefreshChartCache { get; set; } | Indicates whether refreshing chart cache data(Inherited from SaveOptions.) | 
| SaveFormat { get; } | Gets the save file format.(Inherited from SaveOptions.) | 
| SheetSet { get; set; } | Gets or sets the sheets to render. Default is all visible sheets in the workbook: Active. | 
| SortExternalNames { get; set; } | Indicates whether sorting external defined names before saving file.(Inherited from SaveOptions.) | 
| SortNames { get; set; } | Indicates whether sorting defined names before saving file.(Inherited from SaveOptions.) | 
| SplitTablesByBlankRow { get; set; } | Indicates whether blank rows in the worksheet should be treated as table separators when exporting to Markdown. The default value is false. | 
| StreamProvider { get; set; } | Gets or sets the IStreamProvider for exporting objects. If null, the exported objects will be saved to the same directory as the output file. | 
| TableHeaderType { get; set; } | Gets and sets how set the header of the table. | 
| UpdateSmartArt { get; set; } | Indicates whether updating smart art setting. The default value is false.(Inherited from SaveOptions.) | 
| ValidateMergedAreas { get; set; } | Indicates whether validate merged cells before saving the file.(Inherited from SaveOptions.) | 
| WarningCallback { get; set; } | Gets or sets warning callback.(Inherited from SaveOptions.) | 
Examples
namespace AsposeCellsExamples
{
    using Aspose.Cells;
    using System;
    using System.Text;
    public class MarkdownSaveOptionsDemo
    {
        public static void MarkdownSaveOptionsExample()
        {
            // Create a new workbook
            Workbook workbook = new Workbook();
            Worksheet worksheet = workbook.Worksheets[0];
            // Add some data to the worksheet
            worksheet.Cells["A1"].PutValue("Hello");
            worksheet.Cells["B1"].PutValue("World");
            // Create an instance of MarkdownSaveOptions
            MarkdownSaveOptions saveOptions = new MarkdownSaveOptions
            {
                Encoding = Encoding.UTF8,
                FormatStrategy = CellValueFormatStrategy.DisplayString,
                LineSeparator = "\n",
                ClearData = false,
                CachedFileFolder = "C:\\Temp",
                ValidateMergedAreas = true,
                MergeAreas = true,
                SortNames = false,
                SortExternalNames = false,
                RefreshChartCache = false,
                UpdateSmartArt = false
            };
            // Save the workbook as a Markdown file
            workbook.Save("MarkdownSaveOptionsExample.md", saveOptions);
            Console.WriteLine("Workbook saved as Markdown file successfully.");
        }
    }
}
See Also
- class SaveOptions
 - namespace Aspose.Cells
 - assembly Aspose.Cells