Gives you access to the ValueFormatting object controlling the
formatting of the percent values.
The following code displays the pie data labels in the following format: (percent) of (total).
pie.DataLabels.Format = "<percent> of <total>"
' format the percent command as percent and the total with 3 decimal places
pie.PercentValueFormat.Format = ValueFormat.Percentage
pie.TotalValueFormat.Format = ValueFormat.Custom
pie.TotalValueFormat.CustomFormat = "0.000"
pie.DataLabels.Format = "<percent> of <total>";
// format the percent command as percent and the total with 3 decimal places
pie.PercentValueFormat.Format = ValueFormat.Percentage;
pie.TotalValueFormat.Format = ValueFormat.Custom;
pie.TotalValueFormat.CustomFormat = "0.000";
Target Platforms: 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