AnswerCollection.Modified Property

[Read-only] This Boolean property indicates if an AnswerCollection has been modified or not.

Syntax

bool Modified [ get ]

Example

The following Visual C# example shows the value of the Modified property before and after making a change to one of the answers in the collection.

public class ExampleCode
{
    static void Main()
    {
        HotDocs.AnswerCollection asc = new HotDocs.AnswerCollection();
        HotDocs.HDVARTYPE iType = HotDocs.HDVARTYPE.HD_TEXTTYPE;
         
        asc.Create(@"C:\Documents\HotDocs\Answers\AnswerFile.anx ");
        asc.FileFormat = HotDocs.HDAFFORMAT.HD2009Format;
        Console.WriteLine("Current Modified Status (before change): {0}", asc.Modified); asc.Item("Employee Name", ref iType).Value = "Wilma Hernandez";
        Console.WriteLine("Current Modified Status (after change): {0}", asc.Modified);
         
        asc.Close();
    }
}