Text
TextBoxControl.Text property
Ruft einen Text des Steuerelements ab oder legt ihn fest.
public string Text { get; set; }
Beispiele
Zeigt, wie der Text des TextBox-OLE-Steuerelements geändert wird.
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);
Siehe auch
- class TextBoxControl
- namensraum Aspose.Words.Drawing.Ole
- Montage Aspose.Words