Search Results for

    Show / Hide Table of Contents

    Class EditorApiExtensions

    This implements the EditorApi extensions

    Inheritance
    System.Object
    EditorApiExtensions
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.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.

    On this page

    • Methods
      • ParentFirstOrDefault<T>(IAbstractNode)
    Back to top Generated by DocFX