Search Results for

    Show / Hide Table of Contents

    Class WinFormsGraphics

    Windows Forms helpers for resolving the screen DPI, the corresponding DPI scale factor, and whether the current process is DPI-aware.

    Inheritance
    object
    WinFormsGraphics
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Reportman.Drawing.Forms
    Assembly: Reportman.Drawing.Forms.dll
    Syntax
    public static class WinFormsGraphics

    Properties

    View Source

    DPIScale

    Declaration
    public static float DPIScale { get; }
    Property Value
    Type Description
    float

    Methods

    View Source

    GetProcessDpiAwareness(nint, out DpiAwareness)

    Declaration
    public static extern int GetProcessDpiAwareness(nint hprocess, out WinFormsGraphics.DpiAwareness dpiAwareness)
    Parameters
    Type Name Description
    nint hprocess
    WinFormsGraphics.DpiAwareness dpiAwareness
    Returns
    Type Description
    int
    View Source

    IsWindowsFormsDPIAware()

    Declaration
    public static bool IsWindowsFormsDPIAware()
    Returns
    Type Description
    bool
    View Source

    ScreenDPI()

    Declaration
    public static int ScreenDPI()
    Returns
    Type Description
    int
    • View Source
    In this article
    Back to top Generated by DocFX