Legend Class

Legend class

Encapsulates the object that represents the chart legend.


type Legend struct  {
	ptr unsafe.Pointer
}

Constructors

MethodDescription
NewLegendConstructs from a parent object.

Methods

MethodDescription
IsNullChecks whether the implementation object is nullptr.
GetPositionGets or sets the legend position type.
SetPositionGets or sets the legend position type.
GetLegendEntriesGets a collection of all the LegendEntry objects in the specified chart legend.Setting the legend entries of the surface chart is not supported.So it will return null if the chart type is surface chart type.
IsOverLayGets or sets whether showing the legend without overlapping the chart.
SetIsOverLayGets or sets whether showing the legend without overlapping the chart.
IsDeletedIndicates whether this data labels is deleted.
SetIsDeletedIndicates whether this data labels is deleted.
GetTextHorizontalAlignmentGets and sets the text horizontal alignment.
SetTextHorizontalAlignmentGets and sets the text horizontal alignment.
GetTextVerticalAlignmentGets or sets the text vertical alignment of text.
SetTextVerticalAlignmentGets or sets the text vertical alignment of text.
GetRotationAngleRepresents text rotation angle.
SetRotationAngleRepresents text rotation angle.
IsAutomaticRotationIndicates whether the text of the chart is automatically rotated.
CharactersReturns a Characters object that represents a range of characters within the text.
GetReadingOrderRepresents text reading order.
SetReadingOrderRepresents text reading order.
IsResizeShapeToFitTextGets or sets whether a shape should be auto-fit to fully contain the text described within it. Auto-fitting iswhen text within a shape is scaled in order to contain all the text inside.
SetIsResizeShapeToFitTextGets or sets whether a shape should be auto-fit to fully contain the text described within it. Auto-fitting iswhen text within a shape is scaled in order to contain all the text inside.
IsAutoTextIndicates the text is auto generated.
SetIsAutoTextIndicates the text is auto generated.
GetTextGets or sets the text of a frame’s title.
SetTextGets or sets the text of a frame’s title.
GetLinkedSourceGets and sets a reference to the worksheet.
SetLinkedSourceGets and sets a reference to the worksheet.
GetDirectionTypeGets and sets the direction of text.
SetDirectionTypeGets and sets the direction of text.
IsTextWrappedGets or sets a value indicating whether the text is wrapped.
SetIsTextWrappedGets or sets a value indicating whether the text is wrapped.