Skip to main content
Box

LayoutElement.GetRelativeBounds(LayoutElement) Method

Gets coordinates of the specified layout element relative to its container.

Namespace: DevExpress.XtraRichEdit.API.Layout

Assembly: DevExpress.RichEdit.v24.1.Core.dll

NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation

Declaration

Rectangle GetRelativeBounds(
    LayoutElement element
)

Parameters

Name Type Description
element LayoutElement

A LayoutElement descendant that is the element whose relative position is obtained.

Returns

Type Description
Rectangle

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

Remarks

If the current layout element contains the specified layout element, the GetRelativeBounds method returns a rectangle with coordinates calculated relative to the current layout element.

See Also