ApiExamples.ExParagraph.InsertFieldUsingFieldCode C# (CSharp) Метод

InsertFieldUsingFieldCode() приватный статический Метод

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
Результат 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);
        }