Aspose.Words.Examples.CSharp.Programming_Documents.Working_with_Fields.GetFieldNames.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // ExStart:GetFieldNames
            Document doc = new Document();            
            // Shows how to get names of all merge fields in a document.
            string[] fieldNames = doc.MailMerge.GetFieldNames();
            // ExEnd:GetFieldNames
            Console.WriteLine("\nDocument have " + fieldNames.Length + " fields.");
        }
        public static void MappedDataFields()