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

LayoutElementBase.GetRelativeBounds(LayoutElement) Method

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

Namespace: DevExpress.XtraRichEdit.API.Layout

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

Declaration

public 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.

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