private AbstractReportElemen option2CheckBoxEleme nt OptionItem opt Ch

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
private AbstractReportElement option2CheckBoxElement(OptionItem opt)
{
CheckableElement cbe = new CheckboxElement();
if (opt.IsHidden)
cbe.Information = new InformationSimpleText(_answers[opt.ID].FreeText);
else
cbe.Information = new InformationSimpleText(opt.OptionReport.ToString());
cbe.Information.IsChecked = true;
cbe.Properties.Padding = new ReportElementProperties.PaddingInfo(0, 0, 5, 5);
return cbe;
}