File Formats

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartLegendImpl

    Show / Hide Table of Contents

    Class ChartLegendImpl

    Represents ChartLegend.

    Inheritance
    System.Object
    CommonObject
    ChartLegendImpl
    Implements
    IParentApplication
    System.IDisposable
    IChartLegend
    Inherited Members
    CommonObject.m_bIsDisposed
    CommonObject.FindParent(Type)
    CommonObject.FindParent(Type, Boolean)
    CommonObject.FindParent(Object, Type)
    CommonObject.FindParent(Object, Type, Boolean)
    CommonObject.FindParents(Type[])
    CommonObject.FindParent(Type[])
    CommonObject.SetParent(Object)
    CommonObject.CheckDisposed()
    CommonObject.AddReference()
    CommonObject.ReleaseReference()
    CommonObject.Dispose()
    CommonObject.OnDispose()
    CommonObject.Application
    CommonObject.Parent
    CommonObject.AppImplementation
    CommonObject.ReferenceCount
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.XlsIO.Implementation.Charts
    Assembly: Syncfusion.XlsIO.Base.dll
    Syntax
    [CLSCompliant(false)]
    public class ChartLegendImpl : CommonObject, IParentApplication, IDisposable, IChartLegend

    Constructors

    ChartLegendImpl(IApplication, Object)

    Creates new instance.

    Declaration
    public ChartLegendImpl(IApplication application, object parent)
    Parameters
    Type Name Description
    IApplication application

    Current application.

    System.Object parent

    Parent object.

    Properties

    AttachedLabelLayout

    Return attached label layout record. Read-only

    Declaration
    public ChartAttachedLabelLayoutRecord AttachedLabelLayout { get; }
    Property Value
    Type Description
    Syncfusion.XlsIO.Parser.Biff_Records.Charts.ChartAttachedLabelLayoutRecord

    AutoPosition

    Automatic positioning (True if legend is docked).

    Declaration
    public bool AutoPosition { get; set; }
    Property Value
    Type Description
    System.Boolean

    AutoPositionX

    X positioning is automatic.

    Declaration
    public bool AutoPositionX { get; set; }
    Property Value
    Type Description
    System.Boolean

    AutoPositionY

    Y positioning is automatic.

    Declaration
    public bool AutoPositionY { get; set; }
    Property Value
    Type Description
    System.Boolean

    AutoSeries

    Automatic series distribution (True in Microsoft Excel 5.0).

    Declaration
    public bool AutoSeries { get; set; }
    Property Value
    Type Description
    System.Boolean

    ContainsDataTable

    True if chart contains data table.

    Declaration
    public bool ContainsDataTable { get; set; }
    Property Value
    Type Description
    System.Boolean

    FrameFormat

    Represents IChartFrameFormat object for the legend.

    Declaration
    public IChartFrameFormat FrameFormat { get; }
    Property Value
    Type Description
    IChartFrameFormat

    Height

    Y-size.

    Declaration
    public int Height { get; set; }
    Property Value
    Type Description
    System.Int32

    IncludeInLayout

    True to show legend without overlapping the chart. otherwise False. The default is True.

    Declaration
    public bool IncludeInLayout { get; set; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    Not applicable to Binary files

    IsVerticalLegend

    True if the legend is vertical. False if the legend is horizontal.

    Declaration
    public bool IsVerticalLegend { get; set; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    Manual-sized legends always have this bit set to False.

    Layout

    Gets or sets the layout options of the legend.

    Declaration
    public IChartLayout Layout { get; set; }
    Property Value
    Type Description
    IChartLayout

    LegendEntries

    Gets the collection of legend entries. Read-only.

    Declaration
    public IChartLegendEntries LegendEntries { get; }
    Property Value
    Type Description
    IChartLegendEntries

    ParagraphType

    Represents the Legend Paragraph

    Declaration
    public ChartParagraphType ParagraphType { get; set; }
    Property Value
    Type Description
    ChartParagraphType

    Position

    Gets or sets the position of legend on the chart.

    Declaration
    public ExcelLegendPosition Position { get; set; }
    Property Value
    Type Description
    ExcelLegendPosition

    Spacing

    Spacing: 0 = close 1 = medium 2 = open

    Declaration
    public ExcelLegendSpacing Spacing { get; set; }
    Property Value
    Type Description
    ExcelLegendSpacing

    TextArea

    Gets the text area of the legend. Read-only.

    Declaration
    public IChartTextArea TextArea { get; }
    Property Value
    Type Description
    IChartTextArea

    Width

    X-size.

    Declaration
    public int Width { get; set; }
    Property Value
    Type Description
    System.Int32

    X

    X-position of upper-left corner. 1/4000 of chart plot.

    Declaration
    public int X { get; set; }
    Property Value
    Type Description
    System.Int32

    Y

    Gets the Y co-ordinate of upper-left corner of the legend. 1/4000 of chart plot.

    Declaration
    public int Y { get; set; }
    Property Value
    Type Description
    System.Int32

    Methods

    Clear()

    Clears the chart legend.

    Declaration
    public void Clear()

    Clone(Object, Dictionary<Int32, Int32>, Dictionary<String, String>)

    Clones current object.

    Declaration
    public ChartLegendImpl Clone(object parent, Dictionary<int, int> dicFontIndexes, Dictionary<string, string> dicNewSheetNames)
    Parameters
    Type Name Description
    System.Object parent

    Parent object.

    System.Collections.Generic.Dictionary<System.Int32, System.Int32> dicFontIndexes

    Array with new font indexes.

    System.Collections.Generic.Dictionary<System.String, System.String> dicNewSheetNames

    Dictionary with new worksheet names.

    Returns
    Type Description
    ChartLegendImpl

    Returns cloned object.

    Delete()

    Deletes the chart legend.

    Declaration
    public void Delete()

    Implements

    IParentApplication
    System.IDisposable
    IChartLegend
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved