alexa
menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class ElementPaintEventArgs

    Class of arguments for raising OnPaint event of the HTML element.

    Inheritance
    System.Object
    ElementPaintEventArgs
    Namespace: Syncfusion.Windows.Forms.HTMLUI
    Assembly: Syncfusion.HTMLUI.Windows.dll
    Syntax
    public class ElementPaintEventArgs : EventArgs

    Constructors

    ElementPaintEventArgs(PaintEventArgs, Block)

    Initializes a new instance of the ElementPaintEventArgs class

    Declaration
    public ElementPaintEventArgs(PaintEventArgs e, Block block)
    Parameters
    Type Name Description
    System.Windows.Forms.PaintEventArgs e

    Event arguments for drawing.

    Block block

    Block which is going to be drawn.

    Properties

    Cancel

    Gets or sets a value indicating whether painting of the block should be cancelled.

    Declaration
    public bool Cancel { get; set; }
    Property Value
    Type
    System.Boolean

    Graphics

    Gets the graphics context of the element for drawing.

    Declaration
    public Graphics Graphics { get; }
    Property Value
    Type
    System.Drawing.Graphics

    PaintingBlock

    Gets the block of element which is to be painted.

    Declaration
    public Block PaintingBlock { get; }
    Property Value
    Type
    Block

    Methods

    DrawDefault()

    Invokes default drawing of the element by control.

    Declaration
    public void DrawDefault()
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved