internal void SelectAndScrollToLoc(ChartLocation chartLoc, bool fbookmark)
{
Debug.Assert(m_chart != null);
Debug.Assert(chartLoc != null);
Debug.Assert(chartLoc.Row != null);
if (Height == 0)
{
// This doesn't work (because the root box can't be laid out properly) until we have a non-zero height.
// So hold that thought until we do.
m_pendingChartLoc = chartLoc;
m_pendingChartLocIsBookmark = fbookmark;
}
else
{
m_pendingChartLoc = null;
}
// The following will select the row of the bookmark
var row = chartLoc.Row;
IVwSelection sel = MakeRowSelection(row, true);
if (fbookmark)
ScrollSelectionIntoView(sel, VwScrollSelOpts.kssoTop);
else
ScrollSelectionIntoView(sel, VwScrollSelOpts.kssoNearTop);
//Update(); ScrollSelectionIntoView() does this, I believe.
}