Search Results for

    Show / Hide Table of Contents

    Interface ISegmentChangedAware

    This interface represents a verifier which is aware of when a segment has been manually editied by the user and can reset the segment to its original state if needed

    Namespace: Sdl.Verification.Api
    Assembly: Sdl.Verification.Api.dll
    Syntax
    public interface ISegmentChangedAware

    Properties

    EditedSegment

    Returns the segment after the user has edited it

    Declaration
    ISegment EditedSegment { get; }
    Property Value
    Type Description
    ISegment

    HasSegmentChanged

    Returns true if the segment has been manually edited

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

    TargetParagraphId

    Provides the paragraph ID for the edited segment in the original document. Note: The edited segment may not reference the original document in which case the ID may be null.

    Declaration
    ParagraphUnitId? TargetParagraphId { get; }
    Property Value
    Type Description
    System.Nullable<ParagraphUnitId>

    TargetSegmentId

    Provides the segment ID for the edited segment in the original document.

    Declaration
    SegmentId? TargetSegmentId { get; }
    Property Value
    Type Description
    System.Nullable<SegmentId>

    Methods

    ResetSegment()

    Restores the segment to its original content before editing.

    Declaration
    void ResetSegment()

    Events

    SegmentChanged

    Event fired when the user manually edits the target segment

    Declaration
    event EventHandler<EventArgs> SegmentChanged
    Event Type
    Type Description
    System.EventHandler<System.EventArgs>

    On this page

    • Properties
      • EditedSegment
      • HasSegmentChanged
      • TargetParagraphId
      • TargetSegmentId
    • Methods
      • ResetSegment()
    • Events
      • SegmentChanged
    Back to top Generated by DocFX