Class EditableRangeCollection
Provides indexed access to editable ranges in a document.
Inherited Members
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public sealed class EditableRangeCollection : IEnumerable<EditableRange>, IEnumerable
Properties
Count
Gets the number of editable ranges.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
Gets an editable range by zero-based index.
Declaration
public EditableRange this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based range index. |
Property Value
| Type | Description |
|---|---|
| EditableRange |
Methods
Add(EditableRange)
Adds an editable range.
Declaration
public void Add(EditableRange range)
Parameters
| Type | Name | Description |
|---|---|---|
| EditableRange | range | The range to add. |
Clear()
Removes all editable ranges.
Declaration
public void Clear()
GetEnumerator()
Returns an enumerator for the editable ranges.
Declaration
public IEnumerator<EditableRange> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<EditableRange> |
Validate()
Validates marker identifiers, marker pairing, paragraph ownership, and offsets.
Declaration
public EditableRangeValidationResult Validate()
Returns
| Type | Description |
|---|---|
| EditableRangeValidationResult | The validation result. Imported malformed ranges remain available for inspection. |