alexa
menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Interface IChartWallOrFloor

    Interface that represents chart wall or floor.

    Inherited Members
    IChartFillBorder.Fill
    IChartFillBorder.Has3dProperties
    IChartFillBorder.HasInterior
    IChartFillBorder.HasLineProperties
    IChartFillBorder.HasShadowProperties
    IChartFillBorder.Interior
    IChartFillBorder.LineProperties
    IChartFillBorder.Shadow
    IChartFillBorder.ThreeD
    IChartGridLine.Border
    IChartGridLine.Delete()
    Namespace: Syncfusion.XlsIO
    Assembly: Syncfusion.XlsIO.NET.dll
    Syntax
    public interface IChartWallOrFloor : IChartGridLine, IChartFillBorder

    Properties

    PictureUnit

    Gets or Sets the pictureType in walls or floor

    Declaration
    ExcelChartPictureType PictureUnit { get; set; }
    Property Value
    Type
    ExcelChartPictureType
    Examples
    using (ExcelEngine excelEngine = new ExcelEngine())
    {
        //Create worksheet
        IApplication application = excelEngine.Excel;
        application.DefaultVersion = ExcelVersion.Excel2013;
        IWorkbook workbook = application.Workbooks.Create(1);
        IWorksheet sheet = workbook.Worksheets[0];
    
        //Add data
        sheet.Range["A1"].Text = "Jan";
        sheet.Range["B1"].Text = "Feb";
        sheet.Range["C1"].Text = "Mar";
        sheet.Range["A2"].Value = "10";
        sheet.Range["B2"].Value = "20";
        sheet.Range["C2"].Value = "30";
        sheet.Range["A3"].Value = "15";
        sheet.Range["B3"].Value = "25";
        sheet.Range["C3"].Value = "35";
    
        //Create chart
        IChart chart = sheet.Charts.Add();
    
        //Set range
        chart.DataRange = sheet.Range["A1:C3"];
    
        //Set chart type
        chart.ChartType = ExcelChartType.Column_3D;
    
        //Get BackWall 
        IChartWallOrFloor backwall = chart.BackWall;
    
        //Set wall Texture to cork image
        backwall.Fill.Texture = ExcelTexture.Cork;
    
        //Set picture unit to stackScale
        backwall.PictureUnit = ExcelChartPictureType.stackScale;
    
        //Save and Dispose
        workbook.SaveAs("Chart.xlsx");
        workbook.Close();
    }

    Thickness

    Gets or Sets the thickness of the walls or floor.

    Declaration
    uint Thickness { get; set; }
    Property Value
    Type
    uint
    Examples

    The following code illustrates how to set Thickness for IChartWallOrFloor

    using (ExcelEngine excelEngine = new ExcelEngine())
    {
        //Create worksheet
        IApplication application = excelEngine.Excel;
        application.DefaultVersion = ExcelVersion.Excel2013;
        IWorkbook workbook = application.Workbooks.Create(1);
        IWorksheet sheet = workbook.Worksheets[0];
    
        //Add data
        sheet.Range["A1"].Text = "Jan";
        sheet.Range["B1"].Text = "Feb";
        sheet.Range["C1"].Text = "Mar";
        sheet.Range["A2"].Value = "10";
        sheet.Range["B2"].Value = "20";
        sheet.Range["C2"].Value = "30";
        sheet.Range["A3"].Value = "15";
        sheet.Range["B3"].Value = "25";
        sheet.Range["C3"].Value = "35";
    
        //Create chart
        IChart chart = sheet.Charts.Add();
    
        //Set range
        chart.DataRange = sheet.Range["A1:C3"];
    
        //Set chart type
        chart.ChartType = ExcelChartType.Column_3D;
    
        //Get BackWall 
        IChartWallOrFloor backwall = chart.BackWall;
    
        //Set wall thickness
        backwall.Thickness = 30;
    
        //Save and Dispose
        workbook.SaveAs("Chart.xlsx");
        workbook.Close();
    }
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved