Search Results for

    Show / Hide Table of Contents

    Class FormStorageService

    Storage service for forms.

    Inheritance
    System.Object
    StorageService
    ControlStorageService
    FormStorageService
    Inherited Members
    ControlStorageService.UseDips
    ControlStorageService.GetDip(String, Int32, Int32, Int32)
    ControlStorageService.SetDip(String, Int32)
    StorageService.Has(String)
    StorageService.HasProperties
    StorageService.GetStr(String, String)
    StorageService.GetBool(String, Boolean)
    StorageService.GetInt(String, Int32)
    StorageService.GetFloat(String, Single)
    StorageService.GetEnum<T>(String, T)
    StorageService.Read(IFRSerializable)
    StorageService.SetStr(String, String)
    StorageService.SetBool(String, Boolean)
    StorageService.SetBoolStr(String, Boolean)
    StorageService.SetInt(String, Int32)
    StorageService.SetFloat(String, Single)
    StorageService.SetEnum<T>(String, T)
    StorageService.Write(IFRSerializable)
    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()
    Back to top © 1998-2025 Copyright Fast Reports Inc.