Daniel's XL Toolbox NG
XLToolbox.Export.Models.Preset Class Reference

Model for graphic export settings. More...

Public Member Functions

 Preset ()
 
 Preset (FileType fileType, int dpi, ColorSpace colorSpace)
 
string GetDefaultName ()
 Returns a default name for the current settings that is created from the individual properties. More...
 
void Store (Workbook workbookContext)
 Serializes the current Preset into a workbook's Store. More...
 
void Store ()
 
string ComputeMD5Hash ()
 Returns the MD5 hash of this Preset. More...
 
override string ToString ()
 

Static Public Member Functions

static Preset FromLastUsed ()
 Returns the last used preset stored in the UserSettings, or null. More...
 
static Preset FromLastUsed (Workbook workbookContext)
 Returns the last used preset that is stored in the current workbook, or the last used preset stored in the UserSettings, or null. More...
 

Properties

string Name [get, set]
 
int Dpi [get, set]
 
FileType FileType [get, set]
 
ColorSpace ColorSpace [get, set]
 
bool IsVectorType [get]
 
int Bpp [get]
 
Transparency Transparency [get, set]
 
bool UseColorProfile [get, set]
 
string ColorProfile [get, set]
 

Detailed Description

Model for graphic export settings.

Constructor & Destructor Documentation

◆ Preset() [1/2]

XLToolbox.Export.Models.Preset.Preset ( )
inline

◆ Preset() [2/2]

XLToolbox.Export.Models.Preset.Preset ( FileType  fileType,
int  dpi,
ColorSpace  colorSpace 
)
inline

Member Function Documentation

◆ ComputeMD5Hash()

string XLToolbox.Export.Models.Preset.ComputeMD5Hash ( )
inline

Returns the MD5 hash of this Preset.

This is just a wrapper around Bovender's extension method so that calling code does not need to use Bovender.Extensions.

◆ FromLastUsed() [1/2]

static Preset XLToolbox.Export.Models.Preset.FromLastUsed ( )
inlinestatic

Returns the last used preset stored in the UserSettings, or null.

Returns
Preset object or null.

◆ FromLastUsed() [2/2]

static Preset XLToolbox.Export.Models.Preset.FromLastUsed ( Workbook  workbookContext)
inlinestatic

Returns the last used preset that is stored in the current workbook, or the last used preset stored in the UserSettings, or null.

Returns
Preset object or null.

◆ GetDefaultName()

string XLToolbox.Export.Models.Preset.GetDefaultName ( )
inline

Returns a default name for the current settings that is created from the individual properties.

Returns

◆ Store() [1/2]

void XLToolbox.Export.Models.Preset.Store ( Workbook  workbookContext)
inline

Serializes the current Preset into a workbook's Store.

Parameters
workbookContext

◆ Store() [2/2]

void XLToolbox.Export.Models.Preset.Store ( )
inline

◆ ToString()

override string XLToolbox.Export.Models.Preset.ToString ( )
inline

Property Documentation

◆ Bpp

int XLToolbox.Export.Models.Preset.Bpp
get

◆ ColorProfile

string XLToolbox.Export.Models.Preset.ColorProfile
getset

◆ ColorSpace

ColorSpace XLToolbox.Export.Models.Preset.ColorSpace
getset

◆ Dpi

int XLToolbox.Export.Models.Preset.Dpi
getset

◆ FileType

FileType XLToolbox.Export.Models.Preset.FileType
getset

◆ IsVectorType

bool XLToolbox.Export.Models.Preset.IsVectorType
get

◆ Name

string XLToolbox.Export.Models.Preset.Name
getset

◆ Transparency

Transparency XLToolbox.Export.Models.Preset.Transparency
getset

◆ UseColorProfile

bool XLToolbox.Export.Models.Preset.UseColorProfile
getset

The documentation for this class was generated from the following file: