devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
16 lines (15 loc) • 519 B
JavaScript
import { RtfOldListLevelInfo } from './rtf-old-list-level-info';
export class RtfOldListLevelInfoCollection {
listLevelInfo = [];
getByIndex(index) {
if (this.listLevelInfo.length <= index)
this.ensureLevelIndex(index);
return this.listLevelInfo[index];
}
ensureLevelIndex(index) {
const count = this.listLevelInfo.length;
for (let i = count; i <= index; i++) {
this.listLevelInfo.push(new RtfOldListLevelInfo());
}
}
}