.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
Box

LayoutElementBase.GetRelativeBounds(LayoutElement) Method

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

Namespace: DevExpress.XtraRichEdit.API.Layout

Assembly: DevExpress.RichEdit.v21.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 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