TXSheetControlFontEndpoints Class
- Namespace
TXTextControl.TXSheetControl. AspNetCore
- Package
TXTextControl.from the private NuGet feed or the supplied NuGet folderTXSheetControl. AspNetCore
- Assembly
TXTextControl.TXSheetControl. AspNetCore. dll
- Install
dotnet add package TXTextControl..NET 10 and later.TXSheetControl. AspNetCore
Optional compatibility routes for the static font assets included with the browser editor.
Syntax
public static class TXSheetControlFontEndpoints
Members
Methods
| Method | Description |
|---|---|
| MapTXSheetControlFonts | Maps the traditional /sheet-fonts URLs to the bundled static catalog and font files. No backend engine or DI registration is needed. |
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.
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.MapTXSheetControlFonts();
app.MapRazorPages();
app.Run();