ApiExamples.ExParagraph.InsertFieldUsingFieldType C# (CSharp) Method

InsertFieldUsingFieldType() private static method

Insert field into the first paragraph of the current document using field type
private static InsertFieldUsingFieldType ( Document doc, FieldType fieldType, bool updateField, Node refNode, bool isAfter, int paraIndex ) : void
doc Document
fieldType FieldType
updateField bool
refNode Node
isAfter bool
paraIndex int
return void
        private static void InsertFieldUsingFieldType(Document doc, FieldType fieldType, bool updateField, Node refNode, bool isAfter, int paraIndex)
        {
            Paragraph para = DocumentHelper.GetParagraph(doc, paraIndex);
            para.InsertField(fieldType, updateField, refNode, isAfter);
        }