update 20260727

This commit is contained in:
Stefan Hutter
2026-07-27 13:06:08 +02:00
parent ebc8101626
commit 19dc5ccdfd
301 changed files with 89723 additions and 223 deletions
+61
View File
@@ -21,6 +21,7 @@ using Syncfusion.XlsIO;
using Syncfusion.XlsIO.FormatParser.FormatTokens;
using Syncfusion.XlsIO.Implementation.TemplateMarkers;
using Syncfusion.XlsIO.Implementation.XmlSerialization;
using Syncfusion.XlsIO.Parser.Biff_Records.Formula;
using Syncfusion.XPS;
using System;
using System.Buffers.Text;
@@ -1700,6 +1701,64 @@ namespace DOCGEN.Klassen
}
}
if (apivalue.Type == "FCheckbox")
{
foreach (WSection section in document.Sections)
foreach (WTextBody textBody in section.ChildEntities)
{
foreach (WFormField formField in textBody.FormFields)
{
if (formField.Name == apivalue.Tag)
{
string type = formField.FieldType.ToString();
if (type == "FieldFormCheckBox")
{
WCheckBox cb = (WCheckBox)formField;
if (apivalue.Value!="")
{
cb.Text=apivalue.Value;
}
}
break;
}
}
}
}
if (apivalue.Type == "NewCheckbox")
{
int checkboxnr = Convert.ToInt32(apivalue.Value);
int i =0;
List<Entity> blockContentControls = document.FindAllItemsByProperty(EntityType.BlockContentControl, "ContentControlProperties.Type", ContentControlType.CheckBox.ToString());
if (blockContentControls != null)
{
foreach (Entity entity in blockContentControls)
{
// Cast the entity to BlockContentControl
BlockContentControl blockContentControl = entity as BlockContentControl;
// Unchecks the checkbox
if (checkboxnr == i) { blockContentControl.ContentControlProperties.IsChecked = true; }
i = i + 1;
}
}
List<Entity> inlineContentControls = document.FindAllItemsByProperty(EntityType.InlineContentControl, "ContentControlProperties.Type", ContentControlType.CheckBox.ToString());
i = 0;
// Verifies if any inline checkbox content controls are found
if (inlineContentControls != null)
{
foreach (Entity entity in inlineContentControls)
{
// Cast the entity to InlineContentControl
InlineContentControl inlineContentControl = entity as InlineContentControl;
// Unchecks the checkbox
if (checkboxnr == i) { inlineContentControl.ContentControlProperties.IsChecked = true; }
i = i + 1;
}
}
}
if (apivalue.Type == "Absatz" || apivalue.Type=="Image" || apivalue.Type == "HTML" )
{
@@ -2446,6 +2505,8 @@ namespace DOCGEN.Klassen
ownerPara.OwnerTextBody.ChildEntities.Insert(paraIndex + 1, newPara);
}
break;
case EntityType.TextBox:
// Iterate the body items of the textbox.
WTextBox textBox = entity as WTextBox;
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.