word table base font
This commit is contained in:
@@ -382,7 +382,7 @@ internal sealed class WordWriter : WordReader, IWordWriter
|
||||
/// </summary>
|
||||
/// <param name="oldValue">Текст для поиска в параграфах</param>
|
||||
/// <param name="buildTable">Действие для настройки таблицы через TableBuilder</param>
|
||||
public void ReplaceToTable(string oldValue, Action<ITable> buildTable)
|
||||
public void ReplaceToTable(string oldValue, Action<ITable> buildTable, FontProps? baseFont = null)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
|
||||
@@ -398,7 +398,7 @@ internal sealed class WordWriter : WordReader, IWordWriter
|
||||
lock (_syncLock)
|
||||
{
|
||||
// Используем метод расширения для Body с TableBuilder
|
||||
ReplaceToTableExt.ReplaceParagraphsContainingTextToTable(_body, oldValue, buildTable);
|
||||
ReplaceToTableExt.ReplaceParagraphsContainingTextToTable(_body, oldValue, buildTable, baseFont);
|
||||
_isModified = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user