UpdateGraphHistory
(
PerWorkbookSettings oPerWorkbookSettings
)
{
Debug.Assert(oPerWorkbookSettings != null);
AssertValid();
GraphHistory oGraphHistory = oPerWorkbookSettings.GraphHistory;
if (!this.LayoutIsNull)
{
// Save the layout algorithm that was used to lay out the graph.
oGraphHistory[GraphHistoryKeys.LayoutAlgorithm] =
String.Format(
"The graph was laid out using the {0} layout algorithm."
,
m_oLayoutManagerForContextMenu.LayoutText
);
}
// Save the graph's directedness.
oGraphHistory[GraphHistoryKeys.GraphDirectedness] =
String.Format(
"The graph is {0}."
,
EnumUtil.SplitName(
oNodeXLControl.Graph.Directedness.ToString(),
EnumSplitStyle.AllWordsStartLowerCase)
);
oPerWorkbookSettings.GraphHistory = oGraphHistory;
}