Text
TextBoxControl.Text property
Obtiene o establece un texto del control.
public string Text { get; set; }
Ejemplos
Muestra cómo cambiar el texto del control 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);
Ver también
- class TextBoxControl
- espacio de nombres Aspose.Words.Drawing.Ole
- asamblea Aspose.Words