Back to Devexpress

RichEditHitTestResult.LayoutElement Property

officefileapi-devexpress-dot-xtrarichedit-dot-richedithittestresult.md

latest2.9 KB
Original Source

RichEditHitTestResult.LayoutElement Property

Gets the type of the layout element located under the test point.

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public LayoutElement LayoutElement { get; }
vb
Public ReadOnly Property LayoutElement As LayoutElement

Property Value

TypeDescription
LayoutElement

An LayoutElement object indicating the layout element.

|

Remarks

The LayoutElement returns the LayoutElement instance, containing the information about the element under the test point: type (LayoutElement.Type) and its coordinates (LayoutElement.Bounds).

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the LayoutElement 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/VB/ToolTip/Form1.vb#L33

vb
'Retrieve the current layout element type:
Dim element As LayoutElement = result.LayoutElement
Dim text As String = element.Type.ToString()

See Also

How to: Determine the Document Element under the Mouse Pointer

How to: Determine the Document Element under the Mouse Pointer

RichEditHitTestResult Class

RichEditHitTestResult Members

DevExpress.XtraRichEdit Namespace