UNPKG

devexpress-richedit

Version:

DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.

18 lines (17 loc) 556 B
import { RtfOldListLevelInfo } from './rtf-old-list-level-info'; export class RtfOldListLevelInfoCollection { constructor() { this.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()); } } }