Value.Answer Property
[Read/Write] This property specifies the Answer object to which the Value belongs. (Each Answer object contains one or more Value objects, but each Value belongs to only one Answer.)
Syntax
public HotDocs.Server.Answer Answer { set; get; }
Example
The following Visual C# example opens an answer file and lists the names of all answers.
public class ExampleCode { static void Main() { HotDocs.Server.AnswerCollection ac = new HotDocs.Server.AnswerCollection("c:\\temp\\JohnDoe.anx"); string msg; foreach (HotDocs.Server.Answer ans in ac) { //Display the Answer (variable) name and the number of values it contains. msg = ans.Name + ": " + ans.Count.ToString() + " value(s)\r\n"; foreach (HotDocs.Server.Value val in ans) { //Display the Answer (variable) name associated with this value. //Note: It is the same name as displayed above. msg += " " + val.Answer.Name + "\r\n"; } System.Console.WriteLine(msg); } System.Console.ReadKey(); } }