ApiExamples.ExParagraph.InsertFieldUsingFieldCodeFieldString C# (CSharp) Method

InsertFieldUsingFieldCodeFieldString() private static method

Insert field into the first paragraph of the current document using field code and field string
private static InsertFieldUsingFieldCodeFieldString ( Document doc, string fieldCode, string fieldValue, Node refNode, bool isAfter, int paraIndex ) : void
doc Document
fieldCode string
fieldValue string
refNode Node
isAfter bool
paraIndex int
return void
        private static void InsertFieldUsingFieldCodeFieldString(Document doc, string fieldCode, string fieldValue, Node refNode, bool isAfter, int paraIndex)
        {
            Paragraph para = DocumentHelper.GetParagraph(doc, paraIndex);
            para.InsertField(fieldCode, fieldValue, refNode, isAfter);
        }
    }