remove ".Add*" and debugs

This commit is contained in:
melekhin
2026-09-02 16:42:34 +07:00
parent e5d291713a
commit da68c0754b
6 changed files with 87 additions and 87 deletions
@@ -69,7 +69,7 @@ abstract class ParagraphBuilderBase : IParagraph, IFormula
}
// Добавление текста
public IParagraph AddRun(string text, FontProps? font = null)
public IParagraph Run(string text, FontProps? font = null)
{
// Заменяем обычные пробелы на неразрывные для сохранения видимости
string processedText = text.Replace(' ', '\u00A0');
@@ -91,7 +91,7 @@ abstract class ParagraphBuilderBase : IParagraph, IFormula
}
// Добавление текста
public IParagraph AddRunBreak(string text, FontProps? font = null)
public IParagraph RunBreak(string text, FontProps? font = null)
{
// Заменяем обычные пробелы на неразрывные для сохранения видимости
string processedText = text.Replace(' ', '\u00A0');
@@ -116,7 +116,7 @@ abstract class ParagraphBuilderBase : IParagraph, IFormula
}
// Добавление текста
public IParagraph AddSupRun(string text, FontProps? font = null)
public IParagraph Sup(string text, FontProps? font = null)
{
var effectiveFont = GetEffectiveFont(font);
Run run;
@@ -135,7 +135,7 @@ abstract class ParagraphBuilderBase : IParagraph, IFormula
}
// Добавление текста
public IParagraph AddSubRun(string text, FontProps? font = null)
public IParagraph Sub(string text, FontProps? font = null)
{
var effectiveFont = GetEffectiveFont(font);
Run run;
@@ -153,7 +153,7 @@ abstract class ParagraphBuilderBase : IParagraph, IFormula
return this;
}
public IParagraph AddRunWithCustomProps(string text, Action<RunProperties> configure)
public IParagraph RunWithCustomProps(string text, Action<RunProperties> configure)
{
var props = new RunProperties();
configure(props);
@@ -175,8 +175,8 @@ abstract class ParagraphBuilderBase : IParagraph, IFormula
return this;
}
// Метод AddFormula для IParagraphBuilder
IParagraph IParagraph.AddFormula(Action<IFormula> configure)
// Метод Formula для IParagraphBuilder
IParagraph IParagraph.Formula(Action<IFormula> configure)
{
var math = new MathOfficeMath();
try
@@ -195,8 +195,8 @@ abstract class ParagraphBuilderBase : IParagraph, IFormula
return this;
}
// Метод AddFormula для IParagraphBuilder
IParagraph IParagraph.AddFormulaBreak(Action<IFormula> configure)
// Метод Formula для IParagraphBuilder
IParagraph IParagraph.FormulaBreak(Action<IFormula> configure)
{
var math = new MathOfficeMath();
try