Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

GraphicsCache.DrawRectangle(Single, Single, Single, Single, Color, Int32) Method

In This Article

Draws a rectangle with the specified border color and thickness.

Namespace: DevExpress.Utils.Drawing

Assembly: DevExpress.Utils.v24.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

#Declaration

public void DrawRectangle(
    float x,
    float y,
    float width,
    float height,
    Color color,
    int thickness
)

#Parameters

Name Type Description
x Single

An Single value that is the top left corner’s x-coordinate.

y Single

An Single value that is the top left corner’s y-coordinate.

width Single

A Single value that is the rectangle width.

height Single

A Single value that is the rectangle height.

color Color

A Color object that specifies the border color.

thickness Int32

An Int32 value that specifies the border thickness.

See Also