Skip to main content
A newer version of this page is available. .

BaseLayoutItem.Bounds Property

Gets the layout item’s bounding rectangle.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v19.2.dll

Declaration

[Browsable(false)]
public Rectangle Bounds { get; }

Property Value

Type Description
Rectangle

A Rectangle structure that specifies the bounding rectangle.

Remarks

To change the size and coordinates of an item’s top left corner use the BaseLayoutItem.Size and BaseLayoutItem.Location properties, respectively.

Note

The Bounds property returns the coordinates relative to the top left corner of the group that owns the current layout item. To get the coordinates relative to the layout control’s top left corner use the BoundsRelativeToControl property of the BaseLayoutItem.ViewInfo object.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Bounds property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also