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: SdlSdl.VerificationApi
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 |
---|---|
bool |
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 |
---|---|
ParagraphUnitId |
TargetSegmentId
Provides the segment ID for the edited segment in the original document.
Declaration
SegmentId? TargetSegmentId { get; }
Property Value
Type | Description |
---|---|
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 |
---|---|
EventHandlerEventArgs |