This method returns the repeat index information for the current value.
void GetRepeatIndex ( out int repeat1, out int repeat2, out int repeat3, out int repeat4 )
Parameter | Description |
repeat1 | First repeat index for current value. |
repeat2 | Second repeat index for current value. |
repeat3 | Third repeat index for current value. |
repeat4 | Fourth repeat index for current value. |
The following Visual C# example sets the repeat indices for an answer and then displays the indices using GetRepeatIndex :
public class ExampleCode { static void Main() { HotDocs.AnswerCollection asc = new HotDocs.AnswerCollection(); HotDocs.Answer ans = new HotDocs.Answer(); HotDocs.HDVARTYPE vType = HotDocs.HDVARTYPE.HD_TEXTTYPE; int rpt1, rpt2, rpt3, rpt4; asc.Create(@"C:\Documents\HotDocs\Answers\AnswerFile.anx"); ans = asc.Item("Beneficiary Name", ref vType); ans.SetRepeatIndex(1, 0, 0, 0); ans.GetRepeatIndex(out rpt1,out rpt2,out rpt3,out rpt4); MessageBox.Show(rpt1 + ", " + rpt2 + ", " + rpt3 + ", " + rpt4); asc.Close(); } }