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

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

private RemoveEx ( ) : void
Результат void
        public void RemoveEx()
        {
            //ExStart
            //ExFor:VariableCollection.Remove
            //ExSummary:Shows how to remove an element from a document's variable collection by key.
            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", "Plain text file");
            doc.Variables.Add("bmp", "Image");
            doc.Variables.Add("png", "Image");

            doc.Variables.Remove("bmp");
            Console.WriteLine(doc.Variables.Count); // 4
            //ExEnd
        }