Interface IStartEndNode
A start or end node in a IAbstractContainerNode.
Inherited Members
Namespace: SdlSdl.DesktopEditorEditorApi
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 |
---|---|
bool |
IsGhost
true
if the start/end node has "ghost" status, i.e. can be
considered deleted.
Declaration
bool IsGhost { get; }
Property Value
Type | Description |
---|---|
bool |
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 |
---|---|
bool |