Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created March 27, 2024 18:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/f430854cea5d439e5bc56276a8507114 to your computer and use it in GitHub Desktop.
Save bjoerntx/f430854cea5d439e5bc56276a8507114 to your computer and use it in GitHub Desktop.
private void FlattenFormFields(ServerTextControl textControl)
{
int fieldCount = textControl.FormFields.Count;
for (int i = 0; i < fieldCount; i++) {
TextFieldCollectionBase.TextFieldEnumerator fieldEnum =
textControl.FormFields.GetEnumerator();
fieldEnum.MoveNext();
TXTextControl.FormField curField = (TXTextControl.FormField)fieldEnum.Current;
textControl.FormFields.Remove(curField, true);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment