officefileapi-devexpress-dot-xtrarichedit-dot-richedithittestresult.md
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
public LayoutElement LayoutElement { get; }
Public ReadOnly Property LayoutElement As LayoutElement
| Type | Description |
|---|---|
| LayoutElement |
An LayoutElement object indicating the layout element.
|
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
'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