Text
TextBoxControl.Text property
Ottiene o imposta un testo del controllo.
public string Text { get; set; }
Esempi
Mostra come modificare il testo del controllo OLE TextBox.
Document doc = new Document(MyDir + "Textbox control.docm");
Shape shape = (Shape)doc.GetChild(NodeType.Shape, 0, true);
TextBoxControl textBoxControl = (TextBoxControl)shape.OleFormat.OleControl;
Assert.AreEqual("Aspose.Words test", textBoxControl.Text);
textBoxControl.Text = "Updated text";
Assert.AreEqual("Updated text", textBoxControl.Text);
Assert.AreEqual(Forms2OleControlType.Textbox, textBoxControl.Type);
Guarda anche
- class TextBoxControl
- spazio dei nomi Aspose.Words.Drawing.Ole
- assemblea Aspose.Words