WinForms

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

    Show / Hide Table of Contents

    Class ElementPaintEventArgs

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

    Inheritance
    System.Object
    System.EventArgs
    ElementPaintEventArgs
    Inherited Members
    System.EventArgs.Empty
    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.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 Description
    System.Boolean

    Graphics

    Gets the graphics context of the element for drawing.

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

    PaintingBlock

    Gets the block of element which is to be painted.

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

    Methods

    DrawDefault()

    Invokes default drawing of the element by control.

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