Type
CheckBoxControl.Type property
Ottiene il tipo di controllo Forms 2.0.
public override Forms2OleControlType Type { get; }
Esempi
Mostra come modificare lo stato del controllo CheckBox.
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);
Guarda anche
- enum Forms2OleControlType
- class CheckBoxControl
- spazio dei nomi Aspose.Words.Drawing.Ole
- assemblea Aspose.Words