Search Results for

    Show / Hide Table of Contents
    View Source

    Class TreeChangeExtensions

    Extension methods for tree changes.

    Inheritance
    object
    Namespace: Umbraco.Extensions
    Assembly: Umbraco.Core.dll
    Syntax
    public static class TreeChangeExtensions

    Methods

    View Source

    HasType(TreeChangeTypes, TreeChangeTypes)

    Determines whether the change includes the specified type.

    Declaration
    public static bool HasType(this TreeChangeTypes change, TreeChangeTypes type)
    Parameters
    Type Name Description
    TreeChangeTypes change

    The change to check.

    TreeChangeTypes type

    The type to look for.

    Returns
    Type Description
    bool

    true if the change includes the type; otherwise, false.

    View Source

    HasTypesAll(TreeChangeTypes, TreeChangeTypes)

    Determines whether the change includes all of the specified types.

    Declaration
    public static bool HasTypesAll(this TreeChangeTypes change, TreeChangeTypes types)
    Parameters
    Type Name Description
    TreeChangeTypes change

    The change to check.

    TreeChangeTypes types

    The types to look for.

    Returns
    Type Description
    bool

    true if the change includes all types; otherwise, false.

    View Source

    HasTypesAny(TreeChangeTypes, TreeChangeTypes)

    Determines whether the change includes any of the specified types.

    Declaration
    public static bool HasTypesAny(this TreeChangeTypes change, TreeChangeTypes types)
    Parameters
    Type Name Description
    TreeChangeTypes change

    The change to check.

    TreeChangeTypes types

    The types to look for.

    Returns
    Type Description
    bool

    true if the change includes any of the types; otherwise, false.

    View Source

    HasTypesNone(TreeChangeTypes, TreeChangeTypes)

    Determines whether the change includes none of the specified types.

    Declaration
    public static bool HasTypesNone(this TreeChangeTypes change, TreeChangeTypes types)
    Parameters
    Type Name Description
    TreeChangeTypes change

    The change to check.

    TreeChangeTypes types

    The types to look for.

    Returns
    Type Description
    bool

    true if the change includes none of the types; otherwise, false.

    View Source

    ToEventArgs<TItem>(IEnumerable<TreeChange<TItem>>)

    Converts a collection of tree changes to event arguments.

    Declaration
    public static TreeChange<TItem>.EventArgs ToEventArgs<TItem>(this IEnumerable<TreeChange<TItem>> changes)
    Parameters
    Type Name Description
    IEnumerable<TreeChange<TItem>> changes

    The changes to convert.

    Returns
    Type Description
    TreeChange<TItem>.EventArgs

    Event arguments containing the changes.

    Type Parameters
    Name Description
    TItem

    The type of the item that changed.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX