Search Results for

    Show / Hide Table of Contents

    Interface IStartEndNode

    A start or end node in a IAbstractContainerNode.

    Inherited Members
    INode.AcceptNodeVisitor(INodeVisitor)
    ITreeNode<IAbstractNode, IAbstractContainerNode>.Parent
    ITreeNode<IAbstractNode, IAbstractContainerNode>.NextSibling
    ITreeNode<IAbstractNode, IAbstractContainerNode>.PreviousSibling
    ITreeNode<IAbstractNode, IAbstractContainerNode>.Root
    Namespace: Sdl.DesktopEditor.EditorApi
    Assembly: Sdl.DesktopEditor.EditorApi.dll
    Syntax
    public interface IStartEndNode : INode, IAbstractContentNode, IAbstractNode, ITreeNode<IAbstractNode, IAbstractContainerNode>
    Remarks

    The start/end nodes can never be removed from a container. If an edit operation should cause the start or end node of a container to be deleted but the container itself is not deleted, the start/end node is instead turned into a "ghost", to flag that the container is still present, but it not complete.

    Properties

    IsEnd

    true if the node is the end node of its parent container.

    Declaration
    bool IsEnd { get; }
    Property Value
    Type Description
    System.Boolean

    IsGhost

    true if the start/end node has "ghost" status, i.e. can be considered deleted.

    Declaration
    bool IsGhost { get; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    The ghost status of a node can be changed back to "real" if edit operations make the container whole again.

    If you need to explicitly "un-ghost" a node, move the selection to span it, call CopySelection() and change the ghost state of the corresponding start/end node of the cloned container node in the IDocumentFragment. Then call ReplaceSelection(IDocumentFragment) with the modified document fragment.

    IsStart

    true if the node is the start node of its parent container.

    Declaration
    bool IsStart { get; }
    Property Value
    Type Description
    System.Boolean

    Extension Methods

    WindowsControlUtils.ForWindowFromFrameworkElement(Object, Action<Window>)
    EditorApiExtensions.ParentFirstOrDefault<T>(IAbstractNode)

    On this page

    • Properties
      • IsEnd
      • IsGhost
      • IsStart
    • Extension Methods
    Back to top Generated by DocFX