Back to Devexpress

PanelControl.CalcBoundsByClient(Graphics, Rectangle) Method

windowsforms-devexpress-dot-xtraeditors-dot-panelcontrol-dot-calcboundsbyclient-x28-system-dot-drawing-dot-graphics-system-dot-drawing-dot-rectangle-x29.md

latest2.0 KB
Original Source

PanelControl.CalcBoundsByClient(Graphics, Rectangle) Method

Returns the panel’s bounding rectangle, calculated from the bounds of its client region.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.Utils.v25.2.dll

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

Declaration

csharp
public Rectangle CalcBoundsByClient(
    Graphics graphics,
    Rectangle bounds
)
vb
Public Function CalcBoundsByClient(
    graphics As Graphics,
    bounds As Rectangle
) As Rectangle

Parameters

NameTypeDescription
graphicsGraphics

A Graphics object.

| | bounds | Rectangle |

A Rectangle structure which represents the bounding rectangle of the panel’s client region.

|

Returns

TypeDescription
Rectangle

A Rectangle structure which represents the panel’s bounding rectangle, calculated from the bounds of its client region.

|

See Also

PanelControl Class

PanelControl Members

DevExpress.XtraEditors Namespace