Type
TextBoxControl.Type property
Gets type of Forms 2.0 control.
public override Forms2OleControlType Type { get; }
Examples
Shows how to change text of the TextBox OLE control.
Document doc = new Document(MyDir + "Textbox control.docm");
Shape shape = (Shape)doc.GetChild(NodeType.Shape, 0, true);
TextBoxControl textBoxControl = (TextBoxControl)shape.OleFormat.OleControl;
Assert.That(textBoxControl.Text, Is.EqualTo("Aspose.Words test"));
textBoxControl.Text = "Updated text";
Assert.That(textBoxControl.Text, Is.EqualTo("Updated text"));
Assert.That(textBoxControl.Type, Is.EqualTo(Forms2OleControlType.Textbox));
See Also
- enum Forms2OleControlType
- class TextBoxControl
- namespace Aspose.Words.Drawing.Ole
- assembly Aspose.Words