API Reference
OfficeTextIntegrityReview
An immutable text review whose selections are bound to the exact reviewed source.
Inheritance
- Object
- OfficeTextIntegrityReview
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
Methods
public static String ComputeSha256(Byte[] data) #StringCalculates a lowercase SHA-256 digest of encoded bytes.
Parameters
- data System.Byte[]
public Byte[] ExportSelected(String currentText, IEnumerable<Int32> selectedIndices) #Byte[]Exports a separate copy in the original encoding, preserving line endings and unselected code points.
Parameters
- currentText System.String
- selectedIndices System.Collections.Generic.IEnumerable{System.Int32}
public static OfficeTextIntegrityReview Inspect(String text, OfficeTextIntegrityOptions options = null, String location = "Text", CancellationToken cancellationToken = default) #OfficeTextIntegrityReviewReviews pasted text. Export uses UTF-8 without a byte-order mark.
Parameters
- text System.String
- options OfficeIMO.Provenance.OfficeTextIntegrityOptions = null
- location System.String = "Text"
- cancellationToken System.Threading.CancellationToken = default
public static OfficeTextIntegrityReview Inspect(Byte[] data, OfficeTextIntegrityOptions options = null, String location = "Text", CancellationToken cancellationToken = default) #OfficeTextIntegrityReviewReviews strict UTF-8 or BOM-declared UTF-16/32, preserving encoding and the original BOM on export.
Parameters
- data System.Byte[]
- options OfficeIMO.Provenance.OfficeTextIntegrityOptions = null
- location System.String = "Text"
- cancellationToken System.Threading.CancellationToken = default
public String RemoveSelected(String currentText, IEnumerable<Int32> selectedIndices) #StringRemoves only selected finding indices after confirming the source still matches. No normalization is applied.
Parameters
- currentText System.String
- selectedIndices System.Collections.Generic.IEnumerable{System.Int32}
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public String Text { get; } #Exact decoded source; offsets are UTF-16 code units in this string.
public String TextSha256 { get; } #SHA-256 of the exact UTF-16 little-endian code units, without a BOM.
public String InputSha256 { get; } #SHA-256 of the original encoded bytes for a file review; null for pasted text.
public String EncodingName { get; } #Encoding used when exporting the separate copy.
public Boolean HasByteOrderMark { get; } #Whether a source byte-order mark is retained on export.
public OfficeTextIntegrityReport Report { get; } #Bounded Unicode evidence requiring contextual review.