Version

CalculateBounds Method

Calculates inner and outer bounds on the given rectangles using the given variables from a LegendLayer or LegendAppearance.
Syntax
'Declaration
 
Public Shared Sub CalculateBounds( _
   ByRef innerBounds As Rectangle, _
   ByRef outerBounds As Rectangle, _
   ByVal legendLocation As LegendLocation, _
   ByVal legendSpanPercentage As Integer _
) 
public static void CalculateBounds( 
   ref Rectangle innerBounds,
   ref Rectangle outerBounds,
   LegendLocation legendLocation,
   int legendSpanPercentage
)

Parameters

innerBounds
A rectangle which represents the surface of the chart which is not occupied by the legend.
outerBounds
A rectangle which represents the bounds of the legend box.
legendLocation
The location of the legend on the chart.
legendSpanPercentage
The percentage of the chart surface which is spanned by the legend box in the direction opposite legendLocation.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also