<!-- Do not edit this file. It is automatically generated by API Documenter. --> [`Editor`](Editor) › [`setLine`](Editor/setLine) ## Editor.setLine() method 0.11.11 **Signature:** ```typescript setLine(n: number, text: string): void; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | <code>n</code> | <code>number</code> | | | <code>text</code> | <code>string</code> | | **Returns:** `void`