AnkiIO 1.0.2
Build, validate, import, and export Anki-compatible decks from .NET
Loading...
Searching...
No Matches
AnkiField.cs
1namespace AnkiIO;
2
39public sealed record AnkiField(
40 string Name,
41 bool IsRightToLeft = false,
42 bool IsSticky = false,
43 string Font = "Arial",
44 int FontSize = 20)
45{
48 public string Name { get; init; } = Name;
49
52 public bool IsRightToLeft { get; init; } = IsRightToLeft;
53
56 public bool IsSticky { get; init; } = IsSticky;
57
60 public string Font { get; init; } = Font;
61
64 public int FontSize { get; init; } = FontSize;
65}
Configures one named input field in an AnkiNoteType.
Definition AnkiField.cs:45
bool IsSticky
Gets whether compatible Anki editors may retain this field's value for the next manually entered note...
Definition AnkiField.cs:56
int FontSize
Gets the note-editor font-size preference in pixels, not the rendered card size.
Definition AnkiField.cs:64
bool IsRightToLeft
Gets whether compatible Anki editors should use right-to-left input for this field.
Definition AnkiField.cs:52
string Font
Gets the note-editor font-family preference, not the rendered card font.
Definition AnkiField.cs:60
string Name
Gets the exact field name used by note values and template references.
Definition AnkiField.cs:48