Interface ISegmentContainerNode
Source or target language segment in the editor.
Inherited Members
Namespace: SdlSdl.DesktopEditorEditorApi
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 |
---|---|
bool |
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).