Search Results for

    Show / Hide Table of Contents

    Interface ISegmentContainerNode

    Source or target language segment in the editor.

    Inherited Members
    IAbstractContainerNode.Find(Predicate<INode>, Boolean)
    IAbstractContainerNode.FindContentNode(Predicate<IAbstractContentNode>, Boolean)
    IAbstractContainerNode.FindAllNodes(Predicate<IAbstractNode>, Boolean)
    IAbstractContainerNode.StartNode
    IAbstractContainerNode.EndNode
    INode.AcceptNodeVisitor(INodeVisitor)
    ITreeNode<IAbstractNode, IAbstractContainerNode>.Parent
    ITreeNode<IAbstractNode, IAbstractContainerNode>.NextSibling
    ITreeNode<IAbstractNode, IAbstractContainerNode>.PreviousSibling
    ITreeNode<IAbstractNode, IAbstractContainerNode>.Root
    System.Collections.Generic.IEnumerable<Sdl.DesktopEditor.EditorApi.IAbstractNode>.GetEnumerator()
    IMarkupDataNode.Item
    Namespace: Sdl.DesktopEditor.EditorApi
    Assembly: Sdl.DesktopEditor.EditorApi.dll
    Syntax
    public interface ISegmentContainerNode : IAbstractContainerNode, INode, IAbstractNode, ITreeNode<IAbstractNode, IAbstractContainerNode>, IEnumerable<IAbstractNode>, IEnumerable, IMarkupDataNode
    Remarks

    All segment content appears as node inside the segment container.

    Segments always appear inside ParagraphUnits, so you can find the corresponding ParagraphUnit node by simply checking the segment parent nodes recursively until you find a ParagraphUnit node.

    Segments should not be nested, i.e. one segment should never appear inside another one.

    Properties

    IsReadOnly

    Determines whether a segment will be treated as read-only. Content cannot be changed in read-only segments and they can be drawn with a different background color depending on the display settings.

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

    Segment

    Read-only access to the underlying filter framework object.

    Declaration
    ISegment Segment { get; }
    Property Value
    Type Description
    ISegment
    Remarks

    To change the segment properties, clone them, apply changes, and call UpdateSegmentProperties(ParagraphUnitId, ISegmentPairProperties).

    Extension Methods

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

    On this page

    • Properties
      • IsReadOnly
      • Segment
    • Extension Methods
    Back to top Generated by DocFX