Nach Update Syncfusion / Anpassungen Nativ

This commit is contained in:
Stefan Hutter
2024-09-18 09:57:27 +02:00
parent cb21f39e6b
commit d4b9318d96
1954 changed files with 2024537 additions and 116 deletions

View File

@@ -50,6 +50,16 @@ namespace DOCGEN.Klassen
document.CustomDocumentProperties.Add(property, value);
}
TextSelection[] textSelections = document.FindAll("{Klassifizierung}", false, true);
foreach (TextSelection textSelection in textSelections)
{
//Gets the found text as single text range and sets highlight color
WTextRange textRange = textSelection.GetAsOneRange();
textRange.Text = value;
}
document.UpdateDocumentFields();
document.Save(destfile);
ms.Close();
document.Dispose();