Добавьте файлы проекта.

This commit is contained in:
melekhin
2026-06-05 15:58:03 +07:00
parent 785bd7dc5d
commit cf8ef7add7
56 changed files with 13478 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
namespace QWERTYkez.WordProcessor;
public readonly struct ReplaceItem
{
public ReplaceItem() { }
public ReplaceItem(string text)
{
Text = text;
}
public ReplaceItem(string text, bool breakPage)
{
Text = text;
BreakPage = breakPage;
}
public string Text { get; init; } = string.Empty;
public bool BreakPage { get; init; } = false;
// Неявное преобразование из ReplaceItem в string
//public static implicit operator string(ReplaceItem item) => item.Text;
// Явное преобразование из string в ReplaceItem
public static explicit operator ReplaceItem(string text) => new() { Text = text };
}