# TXSheetControlAssetExtensions.UseTXSheetControlAssets Method

> TXSheetControlAssetExtensions.UseTXSheetControlAssets method in the TX Sheet Control .NET API, with the return type IApplicationBuilder and a C# example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Method
- **Namespace:** `TXTextControl.TXSheetControl.AspNetCore`
- **Package:** `TXTextControl.TXSheetControl.AspNetCore` (assembly `TXTextControl.TXSheetControl.AspNetCore.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.AspNetCore > TXSheetControlAssetExtensions > TXSheetControlAssetExtensions.UseTXSheetControlAssets Method
- **591 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontrolassetextensions/usetxsheetcontrolassets-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontrolassetextensions/usetxsheetcontrolassets-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontrolassetextensions/usetxsheetcontrolassets-method/llms-full.txt

---

Rejects private/debugging paths before static-file or static-web-asset endpoint middleware executes.

### Syntax

```csharp
public static IApplicationBuilder UseTXSheetControlAssets(IApplicationBuilder application)
```

### Parameters

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `application` | `IApplicationBuilder` | No | The application pipeline; call this before UseStaticFiles or MapStaticAssets. |

### Return Value

`IApplicationBuilder`. The same builder for continued application setup.

### Examples

Configure a complete Razor Pages application. The editor tag helper includes its browser assets automatically; the optional font routes provide compatibility URLs for the bundled static catalog.

```csharp
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using TXTextControl.TXSheetControl.AspNetCore;

var builder = WebApplication.CreateBuilder(Array.Empty<string>());
builder.Services.AddRazorPages();

var app = builder.Build();
app.UseTXSheetControlAssets();
app.MapRazorPages();
app.Run();
```

### Remarks

Other application paths and the separately validated runtime font endpoints remain unaffected.

Use the member with an instance or settings object from the documented package. Await task-returning operations. Document-bound handles must be resolved again after loading or deleting their owner.

### See Also

- [TXSheetControlAssetExtensions Class](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontrolassetextensions/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)

---

## Nearby

- **Previous:** [TXSheetControlAssetExtensions Class](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontrolassetextensions/llms-full.txt)
- **Next:** [TXSheetControlFontEndpoints Class](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontrolfontendpoints/llms-full.txt)
