Click or drag to resize

IChartBorder Transparency Property

Returns the transparency level of the specified Solid color shaded XlsFill as a floating-point value from 0.0 (Clear) through 1.0(Opaque).
Examples
The following code illustrates the use of Weight property:
<para>//Create worksheet</para><para>Workbook workbook = new Workbook();</para><para>workbook.LoadFromFile("Sample.xlsx");</para><para>Worksheet worksheet = workbook.Worksheets[0];</para><para>//Create chart and set range</para><para>IChart chart = worksheet.Charts.Add();</para><para>chart.DataRange = worksheet.Range["B2:C6"];</para><para>//Set the transparency level of the solid color</para><para>chart.ChartArea.Border.Transparency =0.85;</para><para>chart.ChartArea.Border.Color = Color.Red;</para><para>//Save to file</para><para>workbook.SaveToFile("Chart.xlsx");</para>

Namespace: Spire.Xls.Core
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
double Transparency { get; set; }

Property Value

Type: Double
See Also