This method indicates if a particular option in a Multiple Choice variable is selected.
For example, if you have a Multiple Choice variable with options red, blue, and yellow, this method could be used to determine if "yellow" has been selected.
bool IsMultipleChoiceValueSet ( string chkValue )
| Parameter | Description |
| chkValue | The option text for the option. |
A Boolean value indicating if the option is selected.
The following Visual C# example indicates whether or not a particular Multiple Choice option is selected in an answer file:
public class ExampleCode
{
static void Main()
{
HotDocs.AnswerCollection asc = new HotDocs.AnswerCollection();
HotDocs.Answer ans = new HotDocs.Answer();
HotDocs.HDVARTYPE vType = HotDocs.HDVARTYPE.HD_MULTCHOICETYPE;
asc.Create(@"C:\Documents\HotDocs\Answers\Color.anx");
ans = asc.Item("ColorMC", ref vType);
MessageBox.Show(ans.IsMultipleChoiceValueSet("yellow").ToString());
}
}