Docsv3.31.0
Back to API Reference
Class

MutableRangeUpdate

sealed
Implements:IDisposable

An isolated mutable-source transaction committed as one range-set change.

public RangeId Add(TextRange range, string parameter = null, string defaultParameter = null, RangeChannel channel = null, object payload = null, RangeTracking tracking = default, RangePointAffinity pointAffinity = RangePointAffinity.After)

Adds a new single-segment entity and returns its source-local identity.

public RangeId AddOpaque(TextRange range, string value, string defaultValue = null, RangeChannel channel = null, object payload = null, RangeTracking tracking = default, RangePointAffinity pointAffinity = RangePointAffinity.After)

Adds a new entity whose primary value bypasses positional tokenization.

public void Add(RangeId id, RangeSegment[] segments, string parameter = null, string defaultParameter = null, RangeChannel channel = null, object payload = null)

Adds or restores an entity with a caller-supplied stable identity.

public void Add(RangeId id, TextRange range, string parameter = null, string defaultParameter = null, RangeChannel channel = null, object payload = null, RangeTracking tracking = default, RangePointAffinity pointAffinity = RangePointAffinity.After)

Adds or restores one single-segment entity with a caller-supplied identity.

public void Move(RangeId id, TextRange range)

Moves a single-segment entity while preserving its range and segment identities.

public void Move(RangeId id, RangeSegment[] segments)

Replaces an entity's segments while preserving its range identity.

public void SetParameters(RangeId id, string parameter, string defaultParameter = null)

Changes presentation overrides without touching identity, geometry or payload.

public void SetOpaqueValue(RangeId id, string value, string defaultValue = null)

Changes the opaque primary value without tokenizing delimiters inside it.

public void SetPayload(RangeId id, RangeChannel channel, object payload)

Changes semantic routing and payload without touching identity or geometry.

public bool Remove(RangeId id)

Removes an entity if it exists in the transaction.

public void Clear()

Removes all entities from the transaction.

public void Commit()

Atomically publishes all accumulated changes.

public void Dispose()

Discards an uncommitted transaction.