Class FormStorageService
Storage service for forms.
Inherited Members
Namespace: FastReport.Utils
Assembly: FastReport.dll
Syntax
public class FormStorageService : ControlStorageService
Constructors
FormStorageService(Form)
Initializes a new instance of storage class.
Declaration
public FormStorageService(Form form)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Forms.Form | form | The form which state will be saved/restored. |
Methods
GetFont(String, Font)
Gets font from font storage.
Declaration
public Font GetFont(string formElement, Font defaultFont)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | formElement | Element name from font storage. |
| System.Drawing.Font | defaultFont | Default value. |
Returns
| Type | Description |
|---|---|
| System.Drawing.Font | The font object. |
RestoreFormState(Boolean)
Restores the form state from the configuration file.
Declaration
public bool RestoreFormState(bool ignoreWindowState = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | ignoreWindowState |
Returns
| Type | Description |
|---|---|
| System.Boolean |
SaveFormState()
Saves the form state to the configuration file.
Declaration
public void SaveFormState()