Back to Devexpress

LayoutElement.Bounds Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-layout-dot-layoutelement-008ce6a4.md

latest2.5 KB
Original Source

LayoutElement.Bounds Property

Gets coordinates of a rectangle which encompasses the layout element.

Namespace : DevExpress.XtraRichEdit.API.Layout

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
Rectangle Bounds { get; }
vb
ReadOnly Property Bounds As Rectangle

Property Value

TypeDescription
Rectangle

A Rectangle structure specifying the coordinates of the layout element measured in twips.

|

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.

richedit-winforms-layout-element-under-cursor/CS/ToolTip/Form1.cs#L73

csharp
{
    return String.Format("\r\nBounds : {0}", element.Bounds);
}

richedit-winforms-layout-element-under-cursor/VB/ToolTip/Form1.vb#L51

vb
'Display all retrieved information in the tooltip:
    e.Info = New ToolTipControlInfo(element.Bounds, text, title, ToolTipIconType.Information)
End If

See Also

LayoutElement Interface

LayoutElement Members

DevExpress.XtraRichEdit.API.Layout Namespace