Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SubDocumentCollectionBase Class

A collection of SubDocumentBase objects.

#Declaration

TypeScript
export class SubDocumentCollectionBase extends SubDocumentCollection<SubDocumentBase>

#Inheritance

Collection<T>
SubDocumentCollection<T>
SubDocumentCollectionBase

#Properties

#main Property

Returns the main sub-document.

#Declaration

TypeScript
get main(): SubDocumentBase

#Property Value

Type Description
SubDocumentBase

The main sub-document.

#Remarks

Tip

You can acces 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