Namespace EasyXLS.Charts
Class ExcelChartArea
System.Object
- All Implemented Interfaces:
- IEffectDrawingObject,- IFontDrawingObject
This class stores the chart area information like fill settings, font settings, line settings and shadow settings.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionClone()Creates and returns a copy of this object.System.Drawing.ColorDeprecated.System.Drawing.ColorDeprecated.As of version 8.3, replaced byLineColorFormat.getLineColor()intDeprecated.As of version 8.3, replaced byLineStyleFormat.getDashType()intDeprecated.As of version 8.3, replaced byLineStyleFormat.getWidth()System.StringgetFont()Deprecated.As of version 8.3, replaced byFontFormat.getFont()intDeprecated.As of version 8.3, replaced byFontFormat.getFontSize()System.Drawing.ColorDeprecated.As of version 8.3, replaced byFontFormat.getForeground()intDeprecated.As of version 8.3, replaced byFontFormat.getUnderlineStyle()boolReturns true if the corners of the border are rounded, false otherwise.boolIsBold()Deprecated.As of version 8.3, replaced byFontFormat.IsBold()boolIsItalic()Deprecated.As of version 8.3, replaced byFontFormat.IsItalic()boolIsShadow()Deprecated.As of version 8.3, replaced byShadowFormat.HasShadow()boolDeprecated.As of version 8.3, replaced byFontFormat.IsStrikethrough()boolDeprecated.As of version 8.3, replaced byFontFormat.IsSubscript()boolDeprecated.As of version 8.3, replaced byFontFormat.IsSuperscript()voidsetBackground(System.Drawing.Color background) Deprecated.As of version 8.3, replaced byFillFormat.setBackground(Color)voidsetBold(bool isBold) Deprecated.As of version 8.3, replaced byFontFormat.setBold(bool)voidsetBorderColor(System.Drawing.Color borderColor) Deprecated.As of version 8.3, replaced byLineColorFormat.setLineColor(Color)voidsetBorderStyle(int borderStyle) Deprecated.As of version 8.3, replaced byLineStyleFormat.setDashType(System.String)voidsetBorderWeight(int borderWeight) Deprecated.As of version 8.3, replaced byLineStyleFormat.setWidth(float)voidsetFont(System.String fontName) Deprecated.As of version 8.3, replaced byFontFormat.setFont(System.String)voidsetFontSettings(System.String fontName, int fontSize, bool isBold, bool isItalic, System.Drawing.Color foreground) Deprecated.As of version 8.3, replaced byFontFormat.setFontSettings(String,int,bool,bool,Color)voidsetFontSize(int fontSize) Deprecated.As of version 8.3, replaced byFontFormat.setFontSize(float))voidsetForeground(System.Drawing.Color foreground) Deprecated.As of version 8.3, replaced byFontFormat.setForeground(Color)voidsetItalic(bool isItalic) Deprecated.As of version 8.3, replaced byFontFormat.setItalic(bool)voidsetRoundedCorners(bool roundedCorners) Sets rounded corners for the border.voidsetShadow(bool isShadow) Deprecated.As of version 8.3, replaced byShadowFormat.setShadow(int)voidsetStrikethrough(bool isStrikethrough) Deprecated.As of version 8.3, replaced byFontFormat.setStrikethrough(bool)voidsetSubscript(bool isSubscript) Deprecated.As of version 8.3, replaced byFontFormat.setSubscript(bool)voidsetSuperscript(bool isSuperscript) Deprecated.As of version 8.3, replaced byFontFormat.setSuperscript(bool)voidsetUnderlineStyle(int underlineStyle) Deprecated.As of version 8.3, replaced byFontFormat.setUnderlineSettings(String,bool)Methods inherited from class EasyXLS.Drawings.FontDrawingObjectgetFontFormat, setFontFormatMethods inherited from class EasyXLS.Drawings.EffectDrawingObjectget3DFormat, set3DFormatMethods inherited from class EasyXLS.Drawings.FillDrawingObjectgetFillFormat, setFillFormatMethods inherited from class EasyXLS.Drawings.LineDrawingObjectgetLineColorFormat, getLineStyleFormat, getShadowFormat, setLineColorFormat, setLineStyleFormat, setShadowFormatMethods inherited from class EasyXLS.Drawings.DrawingObjectgetHeight, getHorizontalOffset, getRelativeHeight, getRelativeHorizontalOffset, getRelativeVerticalOffset, getRelativeWidth, getVerticalOffset, getWidth, setLeftUpperOffset, setRelativeLeftUpperOffset, setRelativeSize, setSizeMethods inherited from class System.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Constructor Details- 
ExcelChartAreapublic ExcelChartArea()Defines an instance of the chart area.
 
- 
- 
Method Details- 
getBorderStylepublic int getBorderStyle()Deprecated.As of version 8.3, replaced byLineStyleFormat.getDashType()Returns the border style of the chart area. Possible values are available inChartclass.- Returns:
- the border style of the chart area
- See Also:
 
- 
setBorderStylepublic void setBorderStyle(int borderStyle) Deprecated.As of version 8.3, replaced byLineStyleFormat.setDashType(System.String)Sets the style of the chart area border. Possible values are available inChartclass.- Parameters:
- borderStyle- the new value of the border style
- See Also:
 
- 
getBorderWeightpublic int getBorderWeight()Deprecated.As of version 8.3, replaced byLineStyleFormat.getWidth()Returns the border weight of the chart area. Possible values are available inChartclass.- Returns:
- the border style of the chart area
 
- 
setBorderWeightpublic void setBorderWeight(int borderWeight) Deprecated.As of version 8.3, replaced byLineStyleFormat.setWidth(float)Sets the weight of the chart area border. Possible values are available inChartclass.- Parameters:
- borderWeight- the new value of the border weight
 
- 
getBorderColorpublic System.Drawing.Color getBorderColor()Deprecated.As of version 8.3, replaced byLineColorFormat.getLineColor()Returns the border color of the chart area.- Returns:
- the border color of the chart area
 
- 
setBorderColorpublic void setBorderColor(System.Drawing.Color borderColor) Deprecated.As of version 8.3, replaced byLineColorFormat.setLineColor(Color)Sets the color of the chart area border.- Parameters:
- borderColor- the new color of the border
 
- 
IsShadowpublic bool IsShadow()Deprecated.As of version 8.3, replaced byShadowFormat.HasShadow()Returns the shadow setting of the chart area.- Returns:
- the shadow setting of the chart area
 
- 
setShadowpublic void setShadow(bool isShadow) Deprecated.As of version 8.3, replaced byShadowFormat.setShadow(int)Sets the shadow setting of the chart area.- Parameters:
- isShadow- the new value of the shadow setting
 
- 
getForegroundpublic System.Drawing.Color getForeground()Deprecated.As of version 8.3, replaced byFontFormat.getForeground()Returns the text color of the chart area.- Returns:
- the text color of the chart area
- See Also:
 
- 
setForegroundpublic void setForeground(System.Drawing.Color foreground) Deprecated.As of version 8.3, replaced byFontFormat.setForeground(Color)Sets the foreground color of the chart area.- Parameters:
- foreground- the new color of the foreground
- See Also:
 
- 
getBackgroundpublic System.Drawing.Color getBackground()Deprecated.As of version 8.3, replaced byFillFormat.getBackground()Returns the chart area background color.- Returns:
- the background color of the chart area
 
- 
setBackgroundpublic void setBackground(System.Drawing.Color background) Deprecated.As of version 8.3, replaced byFillFormat.setBackground(Color)Sets the background color of the chart area.- Parameters:
- background- the new color of the area background
 
- 
IsStrikethroughpublic bool IsStrikethrough()Deprecated.As of version 8.3, replaced byFontFormat.IsStrikethrough()Returns the strikethrough setting of the chart area font.- Returns:
- the strikethrough setting of the chart area font
- See Also:
 
- 
setStrikethroughpublic void setStrikethrough(bool isStrikethrough) Deprecated.As of version 8.3, replaced byFontFormat.setStrikethrough(bool)Sets the strikethrough setting of the chart area font.- Parameters:
- isStrikethrough- the new value of the strikethrough setting
- See Also:
 
- 
IsSuperscriptpublic bool IsSuperscript()Deprecated.As of version 8.3, replaced byFontFormat.IsSuperscript()Returns the superscript setting of the chart area font.- Returns:
- the superscript setting of the chart area font
- See Also:
 
- 
setSuperscriptpublic void setSuperscript(bool isSuperscript) Deprecated.As of version 8.3, replaced byFontFormat.setSuperscript(bool)Sets the superscript setting of the chart area font.- Parameters:
- isSuperscript- the new superscript setting of the chart area
- See Also:
 
- 
IsSubscriptpublic bool IsSubscript()Deprecated.As of version 8.3, replaced byFontFormat.IsSubscript()Returns the subscript setting of the chart area font.- Returns:
- the subscript setting of the chart area font
- See Also:
 
- 
setSubscriptpublic void setSubscript(bool isSubscript) Deprecated.As of version 8.3, replaced byFontFormat.setSubscript(bool)Sets the subscript setting of the chart area font.- Parameters:
- isSubscript- the new subscript setting of the chart area font
- See Also:
 
- 
getUnderlineStylepublic int getUnderlineStyle()Deprecated.As of version 8.3, replaced byFontFormat.getUnderlineStyle()Returns the underline style of the chart area text. Possible values are available inFontSettingsclass.- Returns:
- the underline style
- See Also:
 
- 
setUnderlineStylepublic void setUnderlineStyle(int underlineStyle) Deprecated.As of version 8.3, replaced byFontFormat.setUnderlineSettings(String,bool)Sets the underline style of the chart area. Possible values are available inFontSettingsclass.- Parameters:
- underlineStyle- the underline style of the chart area
- See Also:
 
- 
getFontSizepublic int getFontSize()Deprecated.As of version 8.3, replaced byFontFormat.getFontSize()Returns the size of the font used in the chart area.- Returns:
- the size of the font used in the chart area
- See Also:
 
- 
setFontSizepublic void setFontSize(int fontSize) Deprecated.As of version 8.3, replaced byFontFormat.setFontSize(float))Sets the size of the chart area font.- Parameters:
- fontSize- the new value of the font size
- See Also:
 
- 
getFontpublic System.String getFont()Deprecated.As of version 8.3, replaced byFontFormat.getFont()Returns the font name used in the chart area.- Returns:
- the name of the font used in the chart area
- See Also:
 
- 
setFontpublic void setFont(System.String fontName) Deprecated.As of version 8.3, replaced byFontFormat.setFont(System.String)Sets the chart area font name.- Parameters:
- fontName- the name of the new font
- See Also:
 
- 
IsBoldpublic bool IsBold()Deprecated.As of version 8.3, replaced byFontFormat.IsBold()Returns the bold setting of the chart area font.- Returns:
- the bold setting of the chart area font
- See Also:
 
- 
setBoldpublic void setBold(bool isBold) Deprecated.As of version 8.3, replaced byFontFormat.setBold(bool)Sets the bold setting of the chart area font.- Parameters:
- isBold- the new value of the bold setting
- See Also:
 
- 
IsItalicpublic bool IsItalic()Deprecated.As of version 8.3, replaced byFontFormat.IsItalic()Returns the italic setting of the chart area font.- Returns:
- the italic setting of the chart area font
- See Also:
 
- 
setItalicpublic void setItalic(bool isItalic) Deprecated.As of version 8.3, replaced byFontFormat.setItalic(bool)Sets the italic setting of the chart area font.- Parameters:
- isItalic- the new italic style of the chart area font
- See Also:
 
- 
setFontSettingspublic void setFontSettings(System.String fontName, int fontSize, bool isBold, bool isItalic, System.Drawing.Color foreground) Deprecated.As of version 8.3, replaced byFontFormat.setFontSettings(String,int,bool,bool,Color)Sets the font settings.- Parameters:
- fontName- the name of the font
- fontSize- the size of the font
- isBold- the bold option of the font
- isItalic- the italic option of the font
- foreground- the foreground color
 
- 
HasRoundedCornerspublic bool HasRoundedCorners()Returns true if the corners of the border are rounded, false otherwise.- Returns:
- true if the corners of the border are rounded, false otherwise
- See Also:
 
- 
setRoundedCornerspublic void setRoundedCorners(bool roundedCorners) Sets rounded corners for the border.- Parameters:
- roundedCorners- true if the corners of the border are rounded, false otherwise
- See Also:
 
- 
CloneCreates and returns a copy of this object.- Returns:
- a clone of this instance.
 
 
- 
FillFormat.getBackground()