# Compare of Variables and Document properties This article explains how to activate the comparison of document properties in GroupDocs.Comparison for .NET. --- [GroupDocs.Comparison](https://products.groupdocs.com/comparison/net) allows you to compare various properties of a Word document such as _Variable_, _Built_, and _Custom_ properties. Use the following fields of the [CompareOptions](https://reference.groupdocs.com/comparison/net/groupdocs.comparison.options/compareoptions) class to enable comparison functions for document properties: - [CompareVariableProperty](https://reference.groupdocs.com/comparison/net/groupdocs.comparison.options/compareoptions/properties/comparevariableproperty) allows the comparison of _variable_ properties - [CompareDocumentProperty](https://reference.groupdocs.com/comparison/net/groupdocs.comparison.options/compareoptions/properties/comparedocumentproperty) allows the comparison of _built_ and _custom_ properties To activate compare document properties, follow these steps: 1. Instantiate the [Comparer](https://reference.groupdocs.com/comparison/net/groupdocs.comparison/comparer) object. Specify the source file path or stream. 2. Call the [Add](https://reference.groupdocs.com/comparison/net/groupdocs.comparison/comparer/methods/add/index) method. Specify the target file path or stream. 3. Instantiate the [CompareOptions](https://reference.groupdocs.com/comparison/net/groupdocs.comparison.options/compareoptions) object. Set the [CompareVariableProperty](https://reference.groupdocs.com/comparison/net/groupdocs.comparison.options/compareoptions/properties/comparevariableproperty) property to `true` for the _variable_ properties and/or [CompareDocumentProperty](https://reference.groupdocs.com/comparison/net/groupdocs.comparison.options/compareoptions/properties/comparedocumentproperty) for _built_ and _custom_ properties. 4. Call the [Comparer](https://reference.groupdocs.com/comparison/net/groupdocs.comparison/comparer) method. Specify the [CompareOptions](https://reference.groupdocs.com/comparison/net/groupdocs.comparison.options/compareoptions) object from the previous step. The following code snippet shows how activate comparison of the Variable, Built and Custom properties: {{< tabs "example1">}} {{< tab "C#" >}} ```csharp using GroupDocs.Comparison; using GroupDocs.Comparison.Options; // ... using (Comparer comparer = new Comparer("source.docx")) { comparer.Add("target.docx"); CompareOptions options = new CompareOptions(); options.CompareVariableProperty = true; // to activate the comparison of variable properties options.CompareDocumentProperty = true; // to activate the comparison of built and custom properties comparer.Compare("result.docx", options); } ``` {{< /tab >}} {{< /tabs >}} The result is as follows: ![](https://docs.groupdocs.com/comparison/net/images/properties-summary-page.png)