





Display multiple task results in the TaskResults control
Each time a task is executed, a new task results collection is
created in the TaskResults control.
Members
Properties
The following table provides a list of properties of
interest. For complete reference information, see the TaskResults
control in the library reference section.
| Property Name | Type | Description |
|---|---|---|
| Map | string | The Map control ID to which the TaskResults control will be buddied to. |
| GraphicsTransparency | float | Percentage transparency of graphic features associated with results. 0 = opaque, 100 = transparent. |
| ResultsInsertLocation | ResultsInsertLocation | Location in the TaskResults control where new result are added. The default is the Top of the list. |
| ZoomToPointFactor | double | When zooming to points, this is the number which the full extent will be divided by in order to calculate the extent to zoom to. |
SimpleTaskResult str = new SimpleTaskResult("HEADING", "DETAIL");
TaskResults1.DisplayResults(null, null, null, str);

DataTable dt = new DataTable("table1");
DataColumn dc1 = new DataColumn("column11");
DataColumn dc2 = new DataColumn("column12");
dt.Columns.Add(dc1);
dt.Columns.Add(dc2);
DataRow dr1 = dt.NewRow();
dr1[dc1] = "value11";
dr1[dc2] = "value12";
dt.Rows.Add(dr1);
DataTable dt2 = new DataTable("table2");
DataColumn dc21 = new DataColumn("column21");
DataColumn dc22 = new DataColumn("column22");
dt2.Columns.Add(dc21);
dt2.Columns.Add(dc22);
DataRow dr21 = dt2.NewRow();
dr21[dc21] = "value21";
dr21[dc22] = "value22";
dt2.Rows.Add(dr21);
DataSet ds = new DataSet();
ds.Tables.Add(dt);
ds.Tables.Add(dt2);
TaskResults1.DisplayResults(null, null, null, ds);

TaskResultNode trn_parent = new TaskResultNode("Parent Node");
TaskResultNode trn_child = new TaskResultNode("Child Node");
trn_parent.Nodes.Add(trn_child);
trn_child.TextCellStyleAttributes.Add("color",
System.Drawing.ColorTranslator.ToHtml(System.Drawing.Color.Red));
TaskResults1.SetupTaskResultNode(null, null, null, trn_parent);
TaskResults1.DisplayResults(null, null, null, trn_parent);

TaskResultNode trn_ds = TaskResults1.CreateTaskResultNode(null, null,
null, ds, true, true);
foreach (TreeViewPlusNode tvpn in trn_ds.Nodes)
{
tvpn.TextCellStyleAttributes.Add("color",
System.Drawing.ColorTranslator.ToHtml(System.Drawing.Color.Blue));
foreach (TreeViewPlusNode tvpn1 in tvpn.Nodes)
{
tvpn1.TextCellStyleAttributes.Add("font-style", "italic");
tvpn1.Text = tvpn1.Text + "_new";
}
}
TaskResults1.Nodes.Insert(0, trn_ds);
