Class EditorApiExtensions
This implements the EditorApi extensions
Inherited Members
Namespace: Sdl.DesktopEditor.EditorApi.Extensions
Assembly: Sdl.DesktopEditor.EditorApi.dll
Syntax
public static class EditorApiExtensions
Methods
ParentFirstOrDefault<T>(IAbstractNode)
Gets the first parent of the node matching an assignable type.
Declaration
public static T ParentFirstOrDefault<T>(this IAbstractNode node) where T : class
Parameters
| Type | Name | Description |
|---|---|---|
| IAbstractNode | node | The node for whitch the search is done |
Returns
| Type | Description |
|---|---|
| T | The first parent of type subclass or subinterface of T found or null if none was found. |
Type Parameters
| Name | Description |
|---|---|
| T | Type parameter expected for the parent node or the assignable types. |