UNPKG

@syncfusion/ej2-documenteditor

Version:

Feature-rich document editor control with built-in support for context menu, options pane and dialogs.

45 lines (44 loc) 1.26 kB
/** * @private */ var TextSearchResult = /** @class */ (function () { function TextSearchResult(owner) { this.startIn = undefined; this.endIn = undefined; this.owner = owner; this.documentHelper = this.owner.documentHelper; } Object.defineProperty(TextSearchResult.prototype, "start", { get: function () { return this.startIn; }, set: function (value) { this.startIn = value; }, enumerable: true, configurable: true }); Object.defineProperty(TextSearchResult.prototype, "end", { get: function () { return this.endIn; }, set: function (value) { this.endIn = value; }, enumerable: true, configurable: true }); Object.defineProperty(TextSearchResult.prototype, "text", { get: function () { return this.documentHelper.selection.getTextInternal(this.start, this.end, false); }, enumerable: true, configurable: true }); TextSearchResult.prototype.destroy = function () { this.start = undefined; this.end = undefined; }; return TextSearchResult; }()); export { TextSearchResult };