BundleAllEdgesIfAppropriate()
{
AssertValid();
if (this.ShouldBundleEdges)
{
// For this CurveStyle value, NodeXLControl uses the EdgeBundler
// class to calculate and store intermediate edge points. See
// EdgeDrawer.CurveStyle for more details.
System.Drawing.Rectangle oLayoutRectangleMinusMargin;
if ( TryGetLayoutRectangleMinusMargin(
out oLayoutRectangleMinusMargin) )
{
CreateEdgeBundler().BundleAllEdges(m_oGraph,
oLayoutRectangleMinusMargin);
m_oGraph.SetValue(
ReservedMetadataKeys.GraphHasEdgeIntermediateCurvePoints,
null);
return;
}
}
m_oGraph.RemoveKey(
ReservedMetadataKeys.GraphHasEdgeIntermediateCurvePoints);
}