aspnetcore-js-devexpress-dot-richedit-dot-subdocumentcollection-1.md
A collection of SubDocument objects.
export class SubDocumentCollection<T extends SubDocument> extends Collection<T>
| Name | Type | Description |
|---|---|---|
| T | SubDocument |
The type of sub-documents in the collection.
|
Collection<T> SubDocumentCollection<T> SubDocumentCollectionBase
Returns the main sub-document.
get main(): T
| Type | Description |
|---|---|
| T |
The main sub-document.
|
Tip
You can access the main sub-document’s properties directly at the document level.
var mainSubDocumentLength = richEdit.document.length;
// or
var mainSubDocumentLength = richEdit.document.subDocuments.main.length;
See Also
Performs the specified action on each element of the current sub-document collection.
forEach(
callback: (subDocument: T) => void
): void
| Name | Type | Description |
|---|---|---|
| callback | (subDocument: T) => void |
The action to perform on each element of the collection.
|
Gets a sub-document with the specified ID.
getById(
id: number
): T
| Name | Type | Description |
|---|---|---|
| id | number |
The sub-document identifier.
|
| Type | Description |
|---|---|
| T |
A sub-document with the specified identifier.
|