menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ImageCursor - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ImageCursor

    Class containing custom cursor implementation.

    Inheritance
    System.Object
    ImageCursor
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Forms.Diagram
    Assembly: Syncfusion.Diagram.Base.dll
    Syntax
    public class ImageCursor

    Constructors

    ImageCursor()

    Declaration
    public ImageCursor()

    Methods

    CreateCursor(Bitmap, Int32, Int32)

    Create a custom cursor with the given bitmap

    Declaration
    public static Cursor CreateCursor(Bitmap bmp, int xHotSpot, int yHotSpot)
    Parameters
    Type Name Description
    System.Drawing.Bitmap bmp

    Bitmap for the cursor.

    System.Int32 xHotSpot

    x hot spot to the cursor.

    System.Int32 yHotSpot

    y hot spot to the cursor.

    Returns
    Type
    System.Windows.Forms.Cursor

    CreateIconIndirect(ref ImageCursor.IconInfo)

    Declaration
    public static IntPtr CreateIconIndirect(ref ImageCursor.IconInfo icon)
    Parameters
    Type Name Description
    ImageCursor.IconInfo icon
    Returns
    Type
    System.IntPtr

    Destroy()

    Destroy the custom cursor

    Declaration
    public static void Destroy()

    DestroyIcon(IntPtr)

    Declaration
    public static bool DestroyIcon(IntPtr handle)
    Parameters
    Type Name Description
    System.IntPtr handle
    Returns
    Type
    System.Boolean

    GetIconInfo(IntPtr, ref ImageCursor.IconInfo)

    Declaration
    public static bool GetIconInfo(IntPtr hIcon, ref ImageCursor.IconInfo pIconInfo)
    Parameters
    Type Name Description
    System.IntPtr hIcon
    ImageCursor.IconInfo pIconInfo
    Returns
    Type
    System.Boolean
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved