[]
Creates and returns an instance of PersistentRange with bounds on the specified objects.
You should dispose the PersistentRange returned by this method when it is no longer needed. Failing to do so may lead to degraded performance.
public PersistentRange GetPersistentRange(ContentObject first, ContentObject last)
| Type | Name | Description |
|---|---|---|
| ContentObject | first | The first content object to include in the range. |
| ContentObject | last | The last content object to include in the range. |
| Type | Description |
|---|---|
| PersistentRange | The newly created instance of PersistentRange. |
Creates and returns an instance of PersistentRange with bounds on the specified markers.
You should dispose the PersistentRange returned by this method when it is no longer needed. Failing to do so may lead to degraded performance.
public PersistentRange GetPersistentRange(Marker start, Marker end)
| Type | Name | Description |
|---|---|---|
| Marker | start | The marker where to start the range. |
| Marker | end | The marker where to end the range. |
| Type | Description |
|---|---|
| PersistentRange | The newly created instance of PersistentRange. |