Type
TextBoxControl.Type property
Forms 2.0 denetiminin türünü alır.
public override Forms2OleControlType Type { get; }
Örnekler
TextBox OLE denetiminin metninin nasıl değiştirileceğini gösterir.
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);
Ayrıca bakınız
- enum Forms2OleControlType
- class TextBoxControl
- ad alanı Aspose.Words.Drawing.Ole
- toplantı Aspose.Words