UpdateAutoFillResultsLegend
(
PerWorkbookSettings oPerWorkbookSettings
)
{
Debug.Assert(oPerWorkbookSettings != null);
AssertValid();
// The autofill results are stored in the per-workbook settings.
// Transfer them to the visual attributes legend control.
AutoFillWorkbookResults oAutoFillWorkbookResults =
oPerWorkbookSettings.AutoFillWorkbookResults;
if (oAutoFillWorkbookResults.AutoFilledNonXYColumnCount > 0)
{
usrAutoFillResultsLegend.Update(oAutoFillWorkbookResults);
}
else
{
usrAutoFillResultsLegend.Clear();
}
}