Table of Contents

Class ExportPdfButtonOptions

Namespace
BootstrapBlazor.Components
Assembly
BootstrapBlazor.dll

ExportPdfButtonOptions 配置类

public class ExportPdfButtonOptions
Inheritance
ExportPdfButtonOptions
Inherited Members
Extension Methods

Constructors

ExportPdfButtonOptions()

public ExportPdfButtonOptions()

Properties

AutoDownload

获得/设置 是否自动下载 Pdf 默认为 true

public bool AutoDownload { get; set; }

Property Value

bool

Color

获得/设置 导出 Pdf 按钮颜色 默认 Color.Primary

public Color Color { get; set; }

Property Value

Color

ElementId

获得/设置 导出 Pdf 元素 Id 默认为 null

public string? ElementId { get; set; }

Property Value

string

FileName

获得/设置 导出 Pdf 文件名 默认为 null 未设置时使用 pdf-时间戳.pdf

public string? FileName { get; set; }

Property Value

string

Icon

获得/设置 导出 Pdf 按钮图标 未设置 取当前图标主题下导出 Pdf 图标

public string? Icon { get; set; }

Property Value

string

IsAsync

获得/设置 是否异步导出 默认为 true

public bool IsAsync { get; set; }

Property Value

bool

OnAfterDownload

获得/设置 下载 Pdf 之后回调委托 默认为 null

public Func<string, Task>? OnAfterDownload { get; set; }

Property Value

Func<string, Task>

OnBeforeDownload

获得/设置 下载 Pdf 之前回调委托 默认为 null

public Func<Stream, Task>? OnBeforeDownload { get; set; }

Property Value

Func<Stream, Task>

OnBeforeExport

获得/设置 导出 Pdf 之前回调委托 默认为 null

public Func<Task>? OnBeforeExport { get; set; }

Property Value

Func<Task>

ScriptTags

获得/设置 导出 Pdf 所需脚本文件集合 默认为 null

public List<string>? ScriptTags { get; set; }

Property Value

List<string>

Selector

获得/设置 导出 Pdf 选择器 默认为 null

public string? Selector { get; set; }

Property Value

string

StyleTags

获得/设置 导出 Pdf 所需样式表文件集合 默认为 null

public List<string>? StyleTags { get; set; }

Property Value

List<string>

Text

获得/设置 导出 Pdf 按钮显示文字 默认为资源文件中 导出 Pdf 文字

public string? Text { get; set; }

Property Value

string