Class EditorApiExtensions
This implements the EditorApi extensions
Inheritance
Object
EditorApiExtensions
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
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. |