Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeTextIntegrityReview

Namespace OfficeIMO.Provenance
Assembly OfficeIMO.Core
Modifiers sealed

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.

Methods

public static String ComputeSha256(Byte[] data) #
Returns: String

Calculates a lowercase SHA-256 digest of encoded bytes.

Parameters

data System.Byte[] requiredposition: 0
public Byte[] ExportSelected(String currentText, IEnumerable<Int32> selectedIndices) #
Returns: Byte[]

Exports a separate copy in the original encoding, preserving line endings and unselected code points.

Parameters

currentText System.String requiredposition: 0
selectedIndices System.Collections.Generic.IEnumerable{System.Int32} requiredposition: 1
Inspect 2 overloads
public static OfficeTextIntegrityReview Inspect(String text, OfficeTextIntegrityOptions options = null, String location = "Text", CancellationToken cancellationToken = default) #
Returns: OfficeTextIntegrityReview

Reviews pasted text. Export uses UTF-8 without a byte-order mark.

Parameters

text System.String requiredposition: 0
options OfficeIMO.Provenance.OfficeTextIntegrityOptions = null optionalposition: 1
location System.String = "Text" optionalposition: 2
cancellationToken System.Threading.CancellationToken = default optionalposition: 3
public static OfficeTextIntegrityReview Inspect(Byte[] data, OfficeTextIntegrityOptions options = null, String location = "Text", CancellationToken cancellationToken = default) #
Returns: OfficeTextIntegrityReview

Reviews strict UTF-8 or BOM-declared UTF-16/32, preserving encoding and the original BOM on export.

Parameters

data System.Byte[] requiredposition: 0
options OfficeIMO.Provenance.OfficeTextIntegrityOptions = null optionalposition: 1
location System.String = "Text" optionalposition: 2
cancellationToken System.Threading.CancellationToken = default optionalposition: 3
public String RemoveSelected(String currentText, IEnumerable<Int32> selectedIndices) #
Returns: String

Removes only selected finding indices after confirming the source still matches. No normalization is applied.

Parameters

currentText System.String requiredposition: 0
selectedIndices System.Collections.Generic.IEnumerable{System.Int32} requiredposition: 1

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.