Syncfusion.XlsIO.Base
Example 


Syncfusion.XlsIO Namespace > IShadow Interface > CustomShadowStyles Method : CustomShadowStyles(Excel2007ChartPresetsOuter,Int32,Int32,Int32,Int32,Int32,Boolean) Method
Value from Excel2007ChartPresetsOuter.
Transparency of the Shadow accepts the values between(0-100).
Size of the Shadow accepts the values between(0-200).
Blur level of the Shadow accepts the values between(0-100).
Angle or Direction of the Shadow accepts the values between(0-359).
Distance of the Shadow accepts the values between(0-200).
if set to true [custom shadow style].

CustomShadowStyles(Excel2007ChartPresetsOuter,Int32,Int32,Int32,Int32,Int32,Boolean) Method

Customs the outer shadow styles.
Syntax
'Declaration
 
Overloads Sub CustomShadowStyles( _
   ByVal iOuter As Excel2007ChartPresetsOuter, _
   ByVal iTransparency As Integer, _
   ByVal iSize As Integer, _
   ByVal iBlur As Integer, _
   ByVal iAngle As Integer, _
   ByVal iDistance As Integer, _
   ByVal iCustomShadowStyle As Boolean _
) 
'Usage
 
Dim instance As IShadow
Dim iOuter As Excel2007ChartPresetsOuter
Dim iTransparency As Integer
Dim iSize As Integer
Dim iBlur As Integer
Dim iAngle As Integer
Dim iDistance As Integer
Dim iCustomShadowStyle As Boolean
 
instance.CustomShadowStyles(iOuter, iTransparency, iSize, iBlur, iAngle, iDistance, iCustomShadowStyle)

Parameters

iOuter
Value from Excel2007ChartPresetsOuter.
iTransparency
Transparency of the Shadow accepts the values between(0-100).
iSize
Size of the Shadow accepts the values between(0-200).
iBlur
Blur level of the Shadow accepts the values between(0-100).
iAngle
Angle or Direction of the Shadow accepts the values between(0-359).
iDistance
Distance of the Shadow accepts the values between(0-200).
iCustomShadowStyle
if set to true [custom shadow style].
Remarks
To know more about charts refer this link.
Example
The following code illustrates how to use the CustomShadowStyles method with Excel2007ChartPresetsOuter.
using Syncfusion.XlsIO;
            
class Example
{
   static void Main()
   {
      using (ExcelEngine excelEngine = new ExcelEngine())
      {
        //Create a worksheet.        
        IApplication application = excelEngine.Excel;
        application.DefaultVersion = ExcelVersion.Excel2013;
        IWorkbook workbook = application.Workbooks.Create(1);
        IWorksheet sheet = workbook.Worksheets[0];
        sheet.Range["A1"].Text = "Student ID";
        sheet.Range["B1"].Text = "Student Name";
        sheet.Range["C1"].Text = "Mark(Out of 100)";
        sheet.Range["A1:C1"].AutofitColumns();
        sheet.Range["A2"].Number = 1;
        sheet.Range["A3"].Number = 2;
        sheet.Range["A4"].Number = 3;
        sheet.Range["A5"].Number = 4;
        sheet.Range["A6"].Number = 5;
        sheet.Range["B2"].Text = "Andrew";
        sheet.Range["B3"].Text = "Marson";
        sheet.Range["B4"].Text = "Jack";
        sheet.Range["B5"].Text = "Sam";
        sheet.Range["B6"].Text = "Breto";
        sheet.Range["C2"].Number = 77;
        sheet.Range["C3"].Number = 45;
        sheet.Range["C4"].Number = 92;
        sheet.Range["C5"].Number = 39;
        sheet.Range["C6"].Number = 55;
        
        //Create a Chart
        IChartShape chart = sheet.Charts.Add();
        chart.LeftColumn = 5;
        chart.RightColumn = 11;
        chart.Name = "Student Sample Chart";
        chart.ChartType = ExcelChartType.Cone_Clustered_3D;
        chart.DataRange = sheet.Range["B2:C6"];
        
        //Customs the outer shadow styles
        chart.ChartArea.Shadow.CustomShadowStyles(Excel2007ChartPresetsOuter.OffsetBottom, 70, 90, 71, 50, 60, true);
        
        workbook.SaveAs("Charts.xlsx");
        workbook.Close();
      }
   }
}
AssemblyVersion

Syncfusion.XlsIO.Base: 17.2460.0.34

See Also