Class ExportsOptions
Class for handling Exports visibility in the Preview control.
Inheritance
System.Object
ExportsOptions
Namespace: FastReport.Utils
Assembly: FastReport.Base.dll
Syntax
public class ExportsOptions
Properties
ExportsMenu
All exports available in the Preview control.
Declaration
public ExportsOptions.ExportsTreeNode ExportsMenu { get; }
Property Value
Type | Description |
---|---|
ExportsOptions.ExportsTreeNode |
Methods
GetInstance()
Gets an instance of ExportOptions.
Declaration
public static ExportsOptions GetInstance()
Returns
Type | Description |
---|---|
ExportsOptions | An ExportOptions instance. |
SetExportCategoryEnabled(String, Boolean)
Sets Export category visibility.
Declaration
public void SetExportCategoryEnabled(string name, bool enabled)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Export category name. |
System.Boolean | enabled | Visibility state. |
SetExportEnabled(Type, Boolean)
Sets Export visibility.
Declaration
public void SetExportEnabled(Type exportType, bool enabled)
Parameters
Type | Name | Description |
---|---|---|
System.Type | exportType | Export type. |
System.Boolean | enabled | Visibility state. |
Events
AfterRestoreState
Occurs once right after restore exports state.
Declaration
public event EventHandler AfterRestoreState
Event Type
Type | Description |
---|---|
System.EventHandler |
Remarks
You may use this event to disable some exports, for example:
Config.PreviewSettings.Exports &= ~PreviewExports.PDFExport;
Doing so before state is restored may not take an effect.
BeforeRestoreState
Occurs once right before restore exports state.
Declaration
public event EventHandler BeforeRestoreState
Event Type
Type | Description |
---|---|
System.EventHandler |
Remarks
Use this event to configure the default exports state or add your own exports.