Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.
Tue Sep 06, 2016 2:56 pm
Is there a way to set the TextBox name and AlternativeText ?
I need to recognise the TextBox am adding to document by the name.
-
shenhav
-
- Posts: 3
- Joined: Thu Aug 11, 2016 1:44 pm
Wed Sep 07, 2016 6:46 am
Dear shenhav,
Thanks for your inquiry.
Sorry that it is not possible to set the TextBox name, but it can replaces the text in a TextBox. Here is sample code for your reference:
- Code: Select all
Paragraph RP = TextBox.Body.Paragraphs[0];
RP.Text = "Replace text";
If it doesn't work for you, please provide us your sample file to help us do an investigation.
Thanks,
Betsy
E-iceblue support team
-
Betsy.jiang
-
- Posts: 3099
- Joined: Tue Sep 06, 2016 8:30 am