WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class NativeMethodsHelper - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class NativeMethodsHelper

    The NativeMethodsHelper class is a wrapper over some Interop calls that are exposed using static methods in this class.

    Inheritance
    System.Object
    NativeMethodsHelper
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Runtime.InteropServices
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public class NativeMethodsHelper

    Constructors

    NativeMethodsHelper()

    Declaration
    public NativeMethodsHelper()

    Methods

    LockWindowUpdate(IntPtr)

    Declaration
    public static void LockWindowUpdate(IntPtr hWnd)
    Parameters
    Type Name Description
    System.IntPtr hWnd

    RedrawWindow(IntPtr)

    Declaration
    public static void RedrawWindow(IntPtr ctlHandle)
    Parameters
    Type Name Description
    System.IntPtr ctlHandle

    RedrawWindow(IntPtr, Int32)

    Declaration
    public static void RedrawWindow(IntPtr ctlHandle, int redrawFlags)
    Parameters
    Type Name Description
    System.IntPtr ctlHandle
    System.Int32 redrawFlags

    ResetRedrawCaller(IntPtr, Object)

    Declaration
    public static void ResetRedrawCaller(IntPtr ctrlHandle, object caller)
    Parameters
    Type Name Description
    System.IntPtr ctrlHandle
    System.Object caller

    ResumeRedrawWindow(IntPtr)

    Resumes redrawing of the window.

    Declaration
    public static void ResumeRedrawWindow(IntPtr ctlHandle)
    Parameters
    Type Name Description
    System.IntPtr ctlHandle

    ResumeRedrawWindow(IntPtr, Boolean)

    Resumes redrawing of the window.

    Declaration
    public static void ResumeRedrawWindow(IntPtr ctlHandle, bool bRedraw)
    Parameters
    Type Name Description
    System.IntPtr ctlHandle
    System.Boolean bRedraw

    SetRedrawWindow(IntPtr, Boolean)

    Overload of SetRedrawWindow(IntPtr, Boolean, Boolean) Forcefully redraws window if redraw is enabled.

    Declaration
    public static void SetRedrawWindow(IntPtr hWnd, bool bRedraw)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    System.Boolean bRedraw

    SetRedrawWindow(IntPtr, Boolean, Boolean)

    Sends the WM_SETREDRAW message to a window to allow changes in that window to be redrawn or to prevent changes in that window from being redrawn.

    Declaration
    public static void SetRedrawWindow(IntPtr hWnd, bool bRedraw, bool bForceRedraw)
    Parameters
    Type Name Description
    System.IntPtr hWnd

    Handle to the native window.

    System.Boolean bRedraw

    Indicates the redraw state. If this parameter is true, the content can be redrawn after a change. If this parameter is false, the content cannot be redrawn after a change.

    System.Boolean bForceRedraw

    Forces redraw of the window using RedrawWindow(IntPtr, Int32). Works only if bRedraw is true.

    SetRedrawWindow(IntPtr, Boolean, Object)

    Declaration
    public static bool SetRedrawWindow(IntPtr ctrlHandle, bool bRedraw, object caller)
    Parameters
    Type Name Description
    System.IntPtr ctrlHandle
    System.Boolean bRedraw
    System.Object caller
    Returns
    Type Description
    System.Boolean

    SuspendRedrawWindow(IntPtr)

    Sends the WM_SETREDRAW to the handle of the Control to prevent drawing of the control.

    Declaration
    public static void SuspendRedrawWindow(IntPtr ctlHandle)
    Parameters
    Type Name Description
    System.IntPtr ctlHandle

    The handle of the control that is to be suspended.

    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved