Back to API Reference
Class

BlockLease

sealed
Implements:IDisposable

Blocks pinned by Lease; content reads are thread-safe, disposal is main-thread.

public int BlockCount{ get }
public bool IsValid{ get }
public int BlockCharCount()
public int BlockCodepointCount()
public int BlockSeparatorCount()
public TextBlockFlags BlockFlags()
public bool BlockEndsParagraph()
public int CopyChars()

Copies the concatenated content of every leased block; returns the number of chars written.

public int CopyBlockChars()

Copies one leased block's content.

public int CopyBlockChars()

Copies logical chars [start, start+count) of one leased block.

public void Dispose()
public readonly int FirstBlock

Index of the first leased block in the rope at lease time.

public readonly int CharOffset

Document char offset of the first leased block at lease time.

public readonly int CodepointOffset

Document codepoint offset of the first leased block at lease time.

public readonly int CharCount
public readonly int CodepointCount
public readonly int Version

The rope version the lease was taken at.