ApiExamples.ExDocumentBuilder.InsertCheckBoxEx C# (CSharp) Метод

InsertCheckBoxEx() приватный Метод

private InsertCheckBoxEx ( ) : void
Результат void
        public void InsertCheckBoxEx()
        {
            //ExStart
            //ExFor:DocumentBuilder.InsertCheckBox(String, Boolean, Int32)
            //ExFor:DocumentBuilder.InsertCheckBox(String, Boolean, Boolean, Int32)
            //ExSummary:Shows how to insert a check box into a document.
            Document doc = new Document();
            DocumentBuilder builder = new DocumentBuilder(doc);

            // Insert a checkbox with no default value and let MS Word apply the default size.
            builder.Writeln("Check box 1");
            builder.InsertCheckBox("CheckBox1", false, 0);
            builder.Writeln();

            // Insert a checked checkbox with a specified value.
            builder.Writeln("Check box 2");
            builder.InsertCheckBox("CheckBox2", false, true, 50);

            doc.Save(MyDir + @"\Artifacts\Document.InsertedCheckBoxes.doc");
            //ExEnd
        }
ExDocumentBuilder