Class RangeSnapshot
Represents a cached, COM-free fingerprint of a Word.Range.
Supports fast hash comparisons and optional slow fallbacks.
Inheritance
RangeSnapshot
Assembly: CoverageKiller2.dll
Syntax
public class RangeSnapshot
Constructors
RangeSnapshot(Range)
Declaration
public RangeSnapshot(Range range)
Parameters
Type |
Name |
Description |
Range |
range |
|
Properties
Alignment
Declaration
public WdParagraphAlignment Alignment { get; }
Property Value
FastHash
Declaration
public string FastHash { get; }
Property Value
FieldCount
Declaration
public int FieldCount { get; }
Property Value
FontName
Declaration
public string FontName { get; }
Property Value
FontSize
Declaration
public float FontSize { get; }
Property Value
TableCount
Declaration
public int TableCount { get; }
Property Value
TextPreview
Declaration
public string TextPreview { get; }
Property Value
Methods
FastMatch(RangeSnapshot)
Fast comparison using only precomputed hash values.
Declaration
public bool FastMatch(RangeSnapshot other)
Parameters
Returns
FastMatch(RangeSnapshot, RangeSnapshot)
Static form of FastMatch that compares two existing snapshots.
No COM access.
Declaration
public static bool FastMatch(RangeSnapshot a, RangeSnapshot b)
Parameters
Returns
Match(CKRange)
Uses the cached snapshot from a CKRange and falls back to SlowMatch if unavailable.
Declaration
public bool Match(CKRange range)
Parameters
Type |
Name |
Description |
CKRange |
range |
|
Returns
Match(CKRange, CKRange)
Static form of Match that compares two CKRanges, using snapshot fastmatch with fallback.
Declaration
public static bool Match(CKRange a, CKRange b)
Parameters
Returns
Match(RangeSnapshot, CKRange)
Static form of Match that compares a snapshot against a CKRange, falling back if needed.
Declaration
public static bool Match(RangeSnapshot a, CKRange b)
Parameters
Returns
SlowMatch(Range)
Builds a new snapshot from the given Word.Range and compares hashes.
Accepts COM access.
Declaration
public bool SlowMatch(Range other)
Parameters
Type |
Name |
Description |
Range |
other |
|
Returns
SlowMatch(Range, Range)
Static form of SlowMatch that builds snapshots from Word.Range objects.
Uses COM.
Declaration
public static bool SlowMatch(Range a, Range b)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Extension Methods