Search Results for

    Show / Hide Table of Contents

    Class ScaledSupportingForm

    Base class for all dialog forms with two buttons, OK and Cancel.

    Inheritance
    System.Object
    System.MarshalByRefObject
    System.ComponentModel.Component
    System.Windows.Forms.Control
    System.Windows.Forms.ScrollableControl
    System.Windows.Forms.ContainerControl
    System.Windows.Forms.Form
    ScaledSupportingForm
    BarcodeEditorForm
    BaseDialogForm
    DesignerOptionsPage
    FormsFonts
    ProgressForm
    WelcomeForm
    Namespace: FastReport.Forms
    Assembly: FastReport.dll
    Syntax
    public class ScaledSupportingForm : Form, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IArrangedElement, IComponent, IDisposable, IContainerControl

    Constructors

    ScaledSupportingForm()

    Initializes a new instance of the ScaledSupportingForm class.

    Declaration
    public ScaledSupportingForm()

    Fields

    OpenDialogMult

    Declaration
    public float OpenDialogMult
    Field Value
    Type Description
    System.Single

    SpecificAnchors

    Dictionary with controls that have a anchots with a value other than left top

    Declaration
    protected Dictionary<Control, AnchorStyles> SpecificAnchors
    Field Value
    Type Description
    System.Collections.Generic.Dictionary<System.Windows.Forms.Control, System.Windows.Forms.AnchorStyles>

    Properties

    CurrentDpi

    Returns form Dpi

    Declaration
    public float CurrentDpi { get; }
    Property Value
    Type Description
    System.Single

    FormRatio

    Gets the Dpi ratio of current form.

    Declaration
    public float FormRatio { get; }
    Property Value
    Type Description
    System.Single

    Methods

    Dispose(Boolean)

    Clean up any resources being used.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    true if managed resources should be disposed; otherwise, false.

    Overrides
    System.Windows.Forms.Form.Dispose(System.Boolean)

    GetBitmap(String)

    Gets a scaled bitmap from specified FastReport assembly resource.

    Declaration
    protected Bitmap GetBitmap(string resource)
    Parameters
    Type Name Description
    System.String resource

    Resource name.

    Returns
    Type Description
    System.Drawing.Bitmap

    Bitmap object.

    GetImage(Int32)

    Declaration
    protected Bitmap GetImage(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    System.Drawing.Bitmap

    GetMinimumBottom()

    Gets the control that has minimum bottom value.

    Declaration
    protected virtual Control GetMinimumBottom()
    Returns
    Type Description
    System.Windows.Forms.Control

    OnLocationChanged(EventArgs)

    Declaration
    protected override void OnLocationChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e
    Overrides
    System.Windows.Forms.Control.OnLocationChanged(System.EventArgs)

    ParseFontSize(Font, Single)

    Declaration
    protected Font ParseFontSize(Font baseFont, float fontsize)
    Parameters
    Type Name Description
    System.Drawing.Font baseFont
    System.Single fontsize
    Returns
    Type Description
    System.Drawing.Font

    Scale()

    Scales all form elements and form size to the current DPI.

    Declaration
    protected virtual void Scale()

    ScaleAutosizeLabel(Control)

    Scale label with autosize = non property.

    Declaration
    protected void ScaleAutosizeLabel(Control control)
    Parameters
    Type Name Description
    System.Windows.Forms.Control control

    ScaleControl(Control)

    Scales control.

    Declaration
    public void ScaleControl(Control control)
    Parameters
    Type Name Description
    System.Windows.Forms.Control control

    Control that needs to be scaled.

    ScaleControls()

    Scales all form elements

    Declaration
    protected void ScaleControls()

    ScaleFont(Control)

    Scale font of control

    Declaration
    protected void ScaleFont(Control control)
    Parameters
    Type Name Description
    System.Windows.Forms.Control control

    Control wich must to b scaled

    ScaleFormSize()

    Scales form size to the current DPI.

    Declaration
    protected void ScaleFormSize()

    ScaleInternal()

    Declaration
    protected void ScaleInternal()

    ScaleLocation(Control)

    Scale location of control

    Declaration
    protected void ScaleLocation(Control control)
    Parameters
    Type Name Description
    System.Windows.Forms.Control control

    Control wich must to b scaled

    ScaleSize(Control)

    Scale size of control

    Declaration
    protected void ScaleSize(Control control)
    Parameters
    Type Name Description
    System.Windows.Forms.Control control

    Control wich must to b scaled

    UpdateResources()

    Updates resources to be resized.

    Declaration
    protected virtual void UpdateResources()

    Events

    ControlScalingBegin

    Called when the control is being scaled.

    Declaration
    public event ScaledSupportingForm.ControlScalingBeginEventHandler ControlScalingBegin
    Event Type
    Type Description
    ScaledSupportingForm.ControlScalingBeginEventHandler

    ScaleEnded

    Called when the scaling is end.

    Declaration
    public event EventHandler ScaleEnded
    Event Type
    Type Description
    System.EventHandler
    Back to top © 1998-2021 Copyright Fast Reports Inc.