TX Sheet Control

TXSheetControlFontEndpoints Class

Class
Namespace
TXTextControl.TXSheetControl.AspNetCore
Package
TXTextControl.TXSheetControl.AspNetCore from the private NuGet feed or the supplied NuGet folder
Assembly
TXTextControl.TXSheetControl.AspNetCore.dll
Install
dotnet add package TXTextControl.TXSheetControl.AspNetCore .NET 10 and later.

Optional compatibility routes for the static font assets included with the browser editor.

Syntax

public static class TXSheetControlFontEndpoints

Members

Methods

MethodDescription
MapTXSheetControlFontsMaps 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();

See Also