Inherits from TKCoreStackLayoutView : UIScrollView
Declared in TKChartLegendContainer.h

Overview

The container which contains legend items.

Properties

itemCount

The items count.

@property (nonatomic, readonly) NSUInteger itemCount

Declared In

TKChartLegendContainer.h

preferredSize

Set preferred size for the container.

@property (nonatomic) CGSize preferredSize

Declared In

TKChartLegendContainer.h

Instance Methods

addItem:

Adds a legend item.

- (void)addItem:(TKChartLegendItem *__nonnull)item

Parameters

item

The item to add to the legend container.

Declared In

TKChartLegendContainer.h

indexOfItem:

Returns the index for specific item.

- (NSInteger)indexOfItem:(TKChartLegendItem *__nonnull)item

Parameters

item

The item.

Return Value

The item index.

Declared In

TKChartLegendContainer.h

itemAtIndex:

Returns the item at a specified index.

- (TKChartLegendItem *__nullable)itemAtIndex:(NSUInteger)index

Parameters

index

The index of the item that the method should return.

Return Value

An instance of TKLegendItem which represents the legend item.

Declared In

TKChartLegendContainer.h

removeAllItems

Removes all items contained in this container.

- (void)removeAllItems

Declared In

TKChartLegendContainer.h