<!-- Do not edit this file. It is automatically generated by API Documenter. --> [`TextFileView`](TextFileView) › [`(constructor)`](TextFileView/(constructor).md) ## TextFileView.(constructor) Constructs a new instance of the `TextFileView` class **Signature:** ```typescript constructor(leaf: WorkspaceLeaf); ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | <code>leaf</code> | [`WorkspaceLeaf`](WorkspaceLeaf) | |