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

LayoutElementBase.GetParentByType<T>() Method

Returns the parent layout element of the type designated by the specified generic type parameter.

Namespace: DevExpress.XtraRichEdit.API.Layout

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

Declaration

public T GetParentByType<T>()
    where T : class

Type Parameters

Name
T

Returns

Type Description
T

The layout element of the type designated by the specified generic type parameter.

Remarks

Gets the element of the specified type which is higher in the layout hierarchy.

The following code snippets (auto-collected from DevExpress Examples) contain references to the GetParentByType<T>() method.

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.

See Also