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.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.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()