Syncfusion.XlsIO.Base
Example 


Display3DShading Property (IComboBoxShape)

Gets or sets value indicating whether 3D shadow is present.
Syntax
'Declaration
 
Property Display3DShading As Boolean
'Usage
 
Dim instance As IComboBoxShape
Dim value As Boolean
 
instance.Display3DShading = value
 
value = instance.Display3DShading
bool Display3DShading {get; set;}
Example
The following code illustrates how to set Display3DShading property.
using Syncfusion.XlsIO;
            
class Program
{
    static void Main()
    {
        using (ExcelEngine excelEngine = new ExcelEngine())
        {
            //Create worksheet
            IApplication application = excelEngine.Excel;
            application.DefaultVersion = ExcelVersion.Excel2013;
            IWorkbook workbook = application.Workbooks.Create(1);
            IWorksheet worksheet = workbook.Worksheets[0];
            
            //Load data
            worksheet["J1"].Value = "1";
            worksheet["J2"].Value = "2";
            worksheet["J3"].Value = "3";
            worksheet["J4"].Value = "4";
            worksheet["J5"].Value = "5";
            
            //Add combobox
            IComboBoxShape combobox = worksheet.ComboBoxes.AddComboBox(2, 2, 20, 100);
            
            //Add combobox data
            combobox.ListFillRange = worksheet["J1:J5"];
            
            //Set selected index
            combobox.SelectedIndex = 1;
            
            //Set 3D shading
            combobox.Display3DShading = true;
            
            //Save and dispose
            workbook.SaveAs("Shapes.xlsx");
            workbook.Close();
        }
    }
}
AssemblyVersion

Syncfusion.XlsIO.Base: 17.2460.0.34

See Also