Google Apps Script API
    Preparing search index...

    An element representing a table cell. A TableCell is always contained within a TableRow and may contain ListItem, Paragraph, or Table elements. For more information on document structure, see the guide to extending Google Docs.

    interface TableCell {
        appendHorizontalRule(): GoogleAppsScript.Document.HorizontalRule;
        appendImage(image: BlobSource): InlineImage;
        appendImage(image: InlineImage): InlineImage;
        appendListItem(
            listItem: GoogleAppsScript.Document.ListItem,
        ): GoogleAppsScript.Document.ListItem;
        appendListItem(text: string): GoogleAppsScript.Document.ListItem;
        appendParagraph(
            paragraph: GoogleAppsScript.Document.Paragraph,
        ): GoogleAppsScript.Document.Paragraph;
        appendParagraph(text: string): GoogleAppsScript.Document.Paragraph;
        appendTable(
            cellsOrTable?: GoogleAppsScript.Document.Table | string[][],
        ): GoogleAppsScript.Document.Table;
        asBody(): GoogleAppsScript.Document.Body;
        asDate(): GoogleAppsScript.Document.Date;
        asEquation(): GoogleAppsScript.Document.Equation;
        asEquationFunction(): EquationFunction;
        asEquationFunctionArgumentSeparator(): EquationFunctionArgumentSeparator;
        asEquationSymbol(): EquationSymbol;
        asFooterSection(): FooterSection;
        asFootnote(): GoogleAppsScript.Document.Footnote;
        asFootnoteSection(): FootnoteSection;
        asHeaderSection(): HeaderSection;
        asHorizontalRule(): GoogleAppsScript.Document.HorizontalRule;
        asInlineDrawing(): InlineDrawing;
        asInlineImage(): InlineImage;
        asListItem(): GoogleAppsScript.Document.ListItem;
        asPageBreak(): GoogleAppsScript.Document.PageBreak;
        asParagraph(): GoogleAppsScript.Document.Paragraph;
        asPerson(): GoogleAppsScript.Document.Person;
        asRichLink(): RichLink;
        asTable(): GoogleAppsScript.Document.Table;
        asTableCell(): GoogleAppsScript.Document.TableCell;
        asTableOfContents(): GoogleAppsScript.Document.TableOfContents;
        asTableRow(): GoogleAppsScript.Document.TableRow;
        asText(): GoogleAppsScript.Document.Text;
        clear(): GoogleAppsScript.Document.TableCell;
        copy(): GoogleAppsScript.Document.TableCell;
        editAsText(): GoogleAppsScript.Document.Text;
        findElement(elementType: ElementType, from?: RangeElement): RangeElement;
        findText(searchPattern: string, from?: RangeElement): RangeElement;
        getAttributes(): any;
        getBackgroundColor(): string;
        getChild(childIndex: number): GoogleAppsScript.Document.Element;
        getChildIndex(child: GoogleAppsScript.Document.Element): number;
        getColSpan(): number;
        getLinkUrl(): string;
        getNextSibling(): GoogleAppsScript.Document.Element;
        getNumChildren(): number;
        getPaddingBottom(): number;
        getPaddingLeft(): number;
        getPaddingRight(): number;
        getPaddingTop(): number;
        getParent(): ContainerElement;
        getParentRow(): GoogleAppsScript.Document.TableRow;
        getParentTable(): GoogleAppsScript.Document.Table;
        getPreviousSibling(): GoogleAppsScript.Document.Element;
        getRowSpan(): number;
        getText(): string;
        getTextAlignment(): TextAlignment;
        getType(): ElementType;
        getVerticalAlignment(): VerticalAlignment;
        getWidth(): number;
        insertHorizontalRule(
            childIndex: number,
        ): GoogleAppsScript.Document.HorizontalRule;
        insertImage(childIndex: number, image: BlobSource): InlineImage;
        insertImage(childIndex: number, image: InlineImage): InlineImage;
        insertListItem(
            childIndex: number,
            listItem: GoogleAppsScript.Document.ListItem,
        ): GoogleAppsScript.Document.ListItem;
        insertListItem(
            childIndex: number,
            text: string,
        ): GoogleAppsScript.Document.ListItem;
        insertParagraph(
            childIndex: number,
            paragraph: GoogleAppsScript.Document.Paragraph,
        ): GoogleAppsScript.Document.Paragraph;
        insertParagraph(
            childIndex: number,
            text: string,
        ): GoogleAppsScript.Document.Paragraph;
        insertTable(
            childIndex: number,
            cellsOrTable?: GoogleAppsScript.Document.Table | string[][],
        ): GoogleAppsScript.Document.Table;
        isAtDocumentEnd(): boolean;
        merge(): GoogleAppsScript.Document.TableCell;
        removeChild(
            child: GoogleAppsScript.Document.Element,
        ): GoogleAppsScript.Document.TableCell;
        removeFromParent(): GoogleAppsScript.Document.TableCell;
        replaceText(
            searchPattern: string,
            replacement: string,
        ): GoogleAppsScript.Document.Element;
        setAttributes(attributes: any): GoogleAppsScript.Document.TableCell;
        setBackgroundColor(color: string): GoogleAppsScript.Document.TableCell;
        setLinkUrl(url: string): GoogleAppsScript.Document.TableCell;
        setPaddingBottom(
            paddingBottom: number,
        ): GoogleAppsScript.Document.TableCell;
        setPaddingLeft(paddingLeft: number): GoogleAppsScript.Document.TableCell;
        setPaddingRight(paddingTop: number): GoogleAppsScript.Document.TableCell;
        setPaddingTop(paddingTop: number): GoogleAppsScript.Document.TableCell;
        setText(text: string): GoogleAppsScript.Document.TableCell;
        setTextAlignment(
            textAlignment: TextAlignment,
        ): GoogleAppsScript.Document.TableCell;
        setVerticalAlignment(
            alignment: VerticalAlignment,
        ): GoogleAppsScript.Document.TableCell;
        setWidth(width: number): GoogleAppsScript.Document.TableCell;
    }

    Hierarchy (View Summary)

    Index

    Methods