Skip to main content

GraphicsCache.DrawFocusRectangle(Graphics, Rectangle, Color, Color) Method

Draws a focus rectangle on the specified graphics surface and within the specified bounds.

Namespace: DevExpress.Utils.Drawing

Assembly: DevExpress.Utils.v23.2.dll

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

Declaration

public void DrawFocusRectangle(
    Graphics g,
    Rectangle r,
    Color foreColor,
    Color backColor
)

Parameters

Name Type Description
g Graphics

The Graphics surface to draw on.

r Rectangle

The dimensions of the focus area.

foreColor Color

The foreground color of the object to draw the focus rectangle on.

backColor Color

The background color of the object to draw the focus rectangle on.

Remarks

 

See Also