Type
CheckBoxControl.Type property
Ruft den Typ des Forms 2.0-Steuerelements ab.
public override Forms2OleControlType Type { get; }
Beispiele
Zeigt, wie der Status des CheckBox-Steuerelements geändert wird.
Document doc = new Document(MyDir + "ActiveX controls.docx");
Shape shape = (Shape)doc.GetChild(NodeType.Shape, 0, true);
CheckBoxControl checkBoxControl = (CheckBoxControl)shape.OleFormat.OleControl;
checkBoxControl.Checked = true;
Assert.AreEqual(true, checkBoxControl.Checked);
Assert.AreEqual(Forms2OleControlType.CheckBox, checkBoxControl.Type);
Siehe auch
- enum Forms2OleControlType
- class CheckBoxControl
- namensraum Aspose.Words.Drawing.Ole
- Montage Aspose.Words