[C#] | public void setLabelLayout(int layoutMethod [, int pos [, int topBound [, int bottomBound ]]]); |
[VB] | Public Sub setLabelLayout(layoutMethod As Integer [, pos As Integer [, topBound As Integer [, bottomBound As Integer ]]]) |
ChartDirector 7.1 (.NET Edition)
PieChart.
Usage
[C#] | public void setLabelLayout(int layoutMethod [, int pos [, int topBound [, int bottomBound ]]]); |
[VB] | Public Sub setLabelLayout(layoutMethod As Integer [, pos As Integer [, topBound As Integer [, bottomBound As Integer ]]]) |
Description
Constant | Value | Description |
---|---|---|
SideLayout | 0 | Side Label Layout |
CircleLayout | 1 | Circular Label Layout |
Arguments
Argument | Default | Description |
---|---|---|
layoutMethod | (Mandatory) | Specify the layout method. Must be one of the predefined constants CircleLayout or SideLayout. |
pos | -1 | For circular layout, it is the distance between the sector perimeter and the sector label. A negative value (but not -1) means the sector label will be drawn in the interior of the sector. For side layout, it is the distance between the pie perimeter and the left or right edges of the invisible containing rectangle (equal to the width of the rectangle minus the pie diameter and then divided by 2). In either case, -1 means the distance is automatically determined. |
topBound | -1 | This parameter applies only to side label layout. It controls the top bound of the labels (the minimum y coordinate), thereby limiting the extent that the labels can be shifted up to avoid overlapping. This parameter is typically used avoid the labels from moving up too much and overlap with other chart objects (such as the chart title). |
bottomBound | -1 | This parameter applies only to side label layout. It controls the bottom bound of the labels (the maximum y coordinate), thereby limiting the extent which the labels can be shifted down to avoid overlapping. This parameter is typically used to avoid the labels from moving down too much and overlap with other chart objects. |
Return Value