TableDefinition.CustomStyle Property
- Namespace
TXTextControl.TXSheetControl. Server
- Package
TXTextControl.asTXSheetControl. Server TXTextControl.from the private NuGet feed or the supplied NuGet folderTXSheetControl. Api. dll
- Also in
TXTextControl.asTXSheetControl. Blazor TXTextControl.TXSheetControl. Api. dll
Named custom table recipe containing name and elements. Each element supplies type, optional stripe size and sparse formatting. The recipe applies while its name matches Style; omitted recipes use built-in styles.
Syntax
public System.Text.Json.JsonElement? CustomStyle { get; init; }
A named sparse table recipe. It applies while its name matches style. Direct formatting overrides table formatting; conditional rules have highest priority. See Tables for recipe roles and precedence. Validation errors reject the asynchronous operation without changing the table.
Example
using TXTextControl.TXSheetControl.Server;
async Task CopyBudgetStyle(Table source, Table target, CancellationToken cancellationToken)
{
TableDefinition snapshot = await source.GetSnapshotAsync(cancellationToken);
await target.UpdateAsync(new TableOptions {
Style = snapshot.Style, CustomStyle = snapshot.CustomStyle
}, cancellationToken);
}