ApiExamples.ExParagraph.InsertFieldUsingFieldCode C# (CSharp) Method

InsertFieldUsingFieldCode() private static method

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