public final class ChartLegend extends Object implements com.gembox.spreadsheet.internal.charts.ChartObject
Modifier and Type | Method and Description |
---|---|
void |
delete()
Deletes legend.
|
ChartLegendPosition |
getPosition()
Gets the legend position.
|
boolean |
isAllowOverlap()
Gets a value indicating whether legend overlaps chart's plot area or resizes it.
|
boolean |
isVisible()
Gets a value indicating whether legend is visible.
|
void |
setAllowOverlap(boolean allowOverlap)
Sets a value indicating whether legend overlaps chart's plot area or resizes it.
|
void |
setPosition(ChartLegendPosition position)
Sets the legend position.
|
void |
setVisible(boolean isVisible)
Sets a value indicating whether legend is visible.
|
String |
toString()
Returns a
String that represents this ChartLegend instance. |
public void delete()
public ChartLegendPosition getPosition()
public boolean isAllowOverlap()
true
if legend overlaps chart's plot area without resizing it; otherwise, false
if legend doesn't overlap chart's plot area but resizes it instead.public boolean isVisible()
Default value of this field is true
.
If legend is not visible, its properties won't be saved when saving a workbook into XLSX format.
true
if legend is visible; otherwise, false
.public void setAllowOverlap(boolean allowOverlap)
allowOverlap
- true
if legend overlaps chart's plot area without resizing it; otherwise, false
if legend doesn't overlap chart's plot area but resizes it instead.public void setPosition(ChartLegendPosition position)
position
- The legend position.public void setVisible(boolean isVisible)
Default value of this field is true
.
If legend is not visible, its properties won't be saved when saving a workbook into XLSX format.
isVisible
- true
if legend is visible; otherwise, false
.public String toString()
String
that represents this ChartLegend
instance.
This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).
toString
in class Object
String
that represents this ChartLegend
instance.© GemBox d.o.o. — All rights reserved.