/*
 * SDK Pullenti Unitext, version 4.33, fabruary 2026. Copyright (c) 2013-2026, Pullenti. All rights reserved. 
 * Non-Commercial Freeware and Commercial Software. 
 * This class is generated using the converter UniSharping (www.unisharping.ru) from Pullenti C# project. 
 * The latest version of the code is available on the site www.pullenti.ru
 */


const RichTextBlock = require("./RichTextBlock");

class RichTextCell extends RichTextBlock {
    
    constructor() {
        super();
        this.colsSpan = 1;
        this.rowsSpan = 1;
        this.columnId = 0;
        this.endOf = false;
        this.mergeToTop = false;
        this.mergeBottoms = false;
        this.fistGrid = -1;
        this.lastGrid = -1;
        this.resColIndex = -1;
    }
    
    toString() {
        let str = ("ColId=" + this.columnId + ", " + super.toString());
        if (this.colsSpan > 1) 
            str = (str + ", ColSpan=" + this.colsSpan);
        if (this.rowsSpan > 1) 
            str = (str + ", RowSpan=" + this.rowsSpan);
        if (this.endOf) 
            str += " EndOf";
        if (this.mergeToTop) 
            str += " MergeToTop";
        if (this.mergeBottoms) 
            str += " MergeBottoms";
        return str;
    }
}


module.exports = RichTextCell