New to Telerik UI for WinForms? Start a free 30-day trial

Supplies the shape path and drawing context to handlers of the image editor's PaintShape event.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class PaintShapeEventArgs : EventArgs

Inheritance: objectEventArgsPaintShapeEventArgs

Inherited Members EventArgs.Empty

Constructors

Initializes event data for a shape that is about to be painted.

C#
public PaintShapeEventArgs(Graphics graphics, GraphicsPath path, Color fillColor, Color borderColor, int borderThickness, ShapeType? shapeType)
Parameters:graphicsGraphics

The graphics context used to paint the current bitmap.

pathGraphicsPath

The path describing the shape.

fillColorColor

The fill color selected for the shape.

borderColorColor

The border color selected for the shape.

borderThicknessint

The border thickness selected for the shape.

shapeTypeShapeType?

The standard shape type, or null when the shape was supplied without one.

Fields

Determines if the original shape should be painted.

C#
public bool Handled

Properties

The border color selected from the DrawShape diaolog.

C#
public Color BorderColor { get; }

The border thickness selected from the DrawShape diaolog.

C#
public int BorderThickness { get; }

The fill color selected from the DrawShape diaolog.

C#
public Color FillColor { get; }

The graphics object that allows you to paint.

C#
public Graphics Graphics { get; }

The original shape path.

C#
public GraphicsPath OriginalPath { get; }

Gets the standard shape type supplied to DrawShape(GraphicsPath, Color, Color, int, ShapeType?); this is null when no type was supplied.

C#
public ShapeType? ShapeType { get; }