Class XlsChartDropBar
- Namespace
- Spire.Xls.Core.Spreadsheet.Charts
- Assembly
- Spire.XLS.dll
public class XlsChartDropBar : XlsObject, IExcelApplication, IDisposable, IChartDropBar, IChartFillBorder
- Inheritance
-
XlsChartDropBar
- Implements
- Derived
- Inherited Members
Properties
BackGroundColor
Gets or sets background color.
public Color BackGroundColor { get; set; }
Property Value
BackGroundColorObject
public OColor BackGroundColorObject { get; }
Property Value
BackGroundKnownColor
Gets or sets background color.
public ExcelColors BackGroundKnownColor { get; set; }
Property Value
Fill
Represents XlsFill options. Read-only.
//Create worksheetWorkbook workbook = new Workbook();workbook.LoadFromFile("Sample.xlsx");Worksheet worksheet = workbook.Worksheets[0];//Create chart and set rangeIChart chart = worksheet.Charts.Add();chart.DataRange = worksheet.Range["B2:C6"];//Set chart typechart.ChartType = ExcelChartType.Column3DClustered;//Gets fill options for the chart elementIShapeFill fillChart = chart.ChartArea.Fill;fillChart.FillType = ShapeFillType.Gradient;fillChart.BackColor = Color.FromArgb(205, 217, 234);fillChart.ForeColor = Color.White;//Save to fileworkbook.SaveToFile("Chart.xlsx");
public IShapeFill Fill { get; }
Property Value
ForeGroundColor
public Color ForeGroundColor { get; set; }
Property Value
ForeGroundColorObject
Gets or sets foreground color.
public OColor ForeGroundColorObject { get; }
Property Value
ForeGroundKnownColor
public ExcelColors ForeGroundKnownColor { get; set; }
Property Value
Format3D
public Format3D Format3D { get; }
Property Value
GapWidth
[Obsolete("get and set are not implemented")]
public int GapWidth { get; set; }
Property Value
HasFormat3D
public bool HasFormat3D { get; }
Property Value
HasInterior
This property indicates whether interior object was created. Read-only.
//Create worksheetWorkbook workbook = new Workbook();workbook.LoadFromFile("Sample.xlsx");Worksheet worksheet = workbook.Worksheets[0];//Create chart and set rangeIChart chart = worksheet.Charts.Add();chart.DataRange = worksheet.Range["B2:C6"];//Set chart typechart.ChartType = ExcelChartType.Column3DClustered;//Create a fill border and set interior valueIChartFillBorder fillBorder = chart.ChartArea;chart.ChartArea.Interior.ForegroundColor = Color.Yellow;//True if the chart element has interior formattingif (fillBorder.HasInterior){//Your Code Here}//Save to fileworkbook.SaveToFile("Chart.xlsx");
public bool HasInterior { get; }
Property Value
HasLineProperties
This property indicates whether line formatting object was created. Read-only.
//Create worksheetWorkbook workbook = new Workbook();workbook.LoadFromFile("Sample.xlsx");Worksheet worksheet = workbook.Worksheets[0];//Create chart and set rangeIChart chart = worksheet.Charts.Add();chart.DataRange = worksheet.Range["B2:C6"];//Set chart typechart.ChartType = ExcelChartType.Column3DClustered;//Create a fill border and set line border valueIChartFillBorder fillBorder = chart.ChartArea;chart.ChartArea.Border.Color = Color.Yellow;//True if the chart element has line formattingif (fillBorder.HasLineProperties){//Your Code Here}//Save to fileworkbook.SaveToFile("Chart.xlsx");
public bool HasLineProperties { get; }
Property Value
HasShadow
public bool HasShadow { get; }
Property Value
Interior
Returns object, that represents area properties. Read-only.
//Create worksheetWorkbook workbook = new Workbook();workbook.LoadFromFile("Sample.xlsx");Worksheet worksheet = workbook.Worksheets[0];//Create chart and set rangeIChart chart = worksheet.Charts.Add();chart.DataRange = worksheet.Range["B2:C6"];//Set chart typechart.ChartType = ExcelChartType.Column3DClustered;//Gets interior formatting properties for the chart elementIChartInterior chartInterior = chart.ChartArea.Interior;chartInterior.BackgroundColor = Color.Beige;chartInterior.Pattern = ExcelPatternType.DarkDownwardDiagonal;//Save to fileworkbook.SaveToFile("Chart.xlsx");
public IChartInterior Interior { get; }
Property Value
IsAutomaticFormat
Gets if use automatic format.
public bool IsAutomaticFormat { get; set; }
Property Value
LineProperties
Returns object, that represents line properties. Read-only.
//Create worksheetWorkbook workbook = new Workbook();workbook.LoadFromFile("Sample.xlsx");Worksheet worksheet = workbook.Worksheets[0];//Create chart and set rangeIChart chart = worksheet.Charts.Add();chart.DataRange = worksheet.Range["B2:C6"];//Set chart typechart.ChartType = ExcelChartType.Column3DClustered;//Gets line formatting properties for the chart elementIChartBorder border = chart.PlotArea.Border;border.Pattern = ChartLinePatternType.DashDotDot;border.Color = Color.Orange;//Save to fileworkbook.SaveToFile("Chart.xlsx");
public ChartBorder LineProperties { get; }
Property Value
Pattern
Gets pattern.
public ExcelPatternType Pattern { get; set; }
Property Value
Shadow
public ChartShadow Shadow { get; }
Property Value
Visible
Gets or sets visiblity.
public bool Visible { get; set; }
Property Value
Methods
Clone(object)
public XlsChartDropBar Clone(object parent)
Parameters
parent
object