ApiExamples.ExVariableCollection.AddEx C# (CSharp) Метод

AddEx() приватный Метод

private AddEx ( ) : void
Результат void
        public void AddEx()
        {
            //ExStart
            //ExFor:VariableCollection.Add
            //ExSummary:Shows how to create document variables and add them to a document's variable collection.
            Document doc = new Document(MyDir + "Document.doc");

            doc.Variables.Add("doc", "Word processing document");
            doc.Variables.Add("docx", "Word processing document");
            doc.Variables.Add("txt", "Word processing document");
            // Duplicate values can be stored but adding a duplicate name overwrites the old one.
            doc.Variables.Add("txt", "Plain text file");
            doc.Variables.Add("bmp", "Image");
            doc.Variables.Add("png", "Image");
            //ExEnd
        }