-
-
Save bjoerntx/04e8f509fad4c2f0ab78d9011f41346a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
FormField curField = (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