Legend Class
Contents
[
Hide
]Legend class
Encapsulates the object that represents the chart legend.
type Legend struct {
ptr unsafe.Pointer
}
Constructors
Method | Description |
---|---|
NewLegend | Constructs from a parent object. |
Methods
Method | Description |
---|---|
IsNull | Checks whether the implementation object is nullptr. |
GetPosition | Gets or sets the legend position type. |
SetPosition | Gets or sets the legend position type. |
GetLegendEntries | Gets 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. |
IsOverLay | Gets or sets whether showing the legend without overlapping the chart. |
SetIsOverLay | Gets or sets whether showing the legend without overlapping the chart. |
IsDeleted | Indicates whether this data labels is deleted. |
SetIsDeleted | Indicates whether this data labels is deleted. |
GetTextHorizontalAlignment | Gets and sets the text horizontal alignment. |
SetTextHorizontalAlignment | Gets and sets the text horizontal alignment. |
GetTextVerticalAlignment | Gets or sets the text vertical alignment of text. |
SetTextVerticalAlignment | Gets or sets the text vertical alignment of text. |
GetRotationAngle | Represents text rotation angle. |
SetRotationAngle | Represents text rotation angle. |
IsAutomaticRotation | Indicates whether the text of the chart is automatically rotated. |
Characters | Returns a Characters object that represents a range of characters within the text. |
GetReadingOrder | Represents text reading order. |
SetReadingOrder | Represents text reading order. |
IsResizeShapeToFitText | Gets 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. |
SetIsResizeShapeToFitText | Gets 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. |
IsAutoText | Indicates the text is auto generated. |
SetIsAutoText | Indicates the text is auto generated. |
GetText | Gets or sets the text of a frame’s title. |
SetText | Gets or sets the text of a frame’s title. |
GetLinkedSource | Gets and sets a reference to the worksheet. |
SetLinkedSource | Gets and sets a reference to the worksheet. |
GetDirectionType | Gets and sets the direction of text. |
SetDirectionType | Gets and sets the direction of text. |
IsTextWrapped | Gets or sets a value indicating whether the text is wrapped. |
SetIsTextWrapped | Gets or sets a value indicating whether the text is wrapped. |