Skip to content

LegendExtensions

Namespace: Hex1b

Assembly: Hex1b.dll

Extension methods for creating instances.

csharp
public static class LegendExtensions

Inheritance

ObjectLegendExtensions

Methods

Legend(RootContext, IReadOnlyList<ChartItem>)

Creates a legend with data (selectors pre-wired).

Parameters:

Returns: LegendWidget<ChartItem>

csharp
public static LegendWidget<ChartItem> Legend(this RootContext ctx, IReadOnlyList<ChartItem> data)

Legend(RootContext, params ChartItem[])

Creates a legend with data (params overload).

Parameters:

Returns: LegendWidget<ChartItem>

csharp
public static LegendWidget<ChartItem> Legend(this RootContext ctx, params ChartItem[] data)

Legend<T, TParent>(WidgetContext<TParent>, IReadOnlyList<T>)

Creates a legend bound to the specified data.

Parameters:

Returns: LegendWidget<<T>>

csharp
public static LegendWidget<T> Legend<T, TParent>(this WidgetContext<TParent> ctx, IReadOnlyList<T> data) where TParent : Hex1bWidget

Legend<T>(RootContext, IReadOnlyList<T>)

Creates a legend bound to the specified data.

Parameters:

Returns: LegendWidget<<T>>

csharp
public static LegendWidget<T> Legend<T>(this RootContext ctx, IReadOnlyList<T> data)

Legend<TParent>(WidgetContext<TParent>, IReadOnlyList<ChartItem>)

Creates a legend with data (selectors pre-wired).

Parameters:

Returns: LegendWidget<ChartItem>

csharp
public static LegendWidget<ChartItem> Legend<TParent>(this WidgetContext<TParent> ctx, IReadOnlyList<ChartItem> data) where TParent : Hex1bWidget

Legend<TParent>(WidgetContext<TParent>, params ChartItem[])

Creates a legend with data (params overload).

Parameters:

  • ctx (WidgetContext<<TParent>>):
  • data (ChartItem[]):

Returns: LegendWidget<ChartItem>

csharp
public static LegendWidget<ChartItem> Legend<TParent>(this WidgetContext<TParent> ctx, params ChartItem[] data) where TParent : Hex1bWidget

Released under the MIT License.