Class ChartLegendElement
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.ChartView.dll
Syntax
public class ChartLegendElement : StackLayoutElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
ChartLegendElement(RadChartElement)
Initializes a new instance of the Chart
Declaration
public ChartLegendElement(RadChartElement chartElement)
Parameters
Rad The chart element. |
Properties
Items
Collection of Legend
Declaration
public LegendItemCollection Items { get; }
Property Value
ItemsLayout
Declaration
public LegendItemsLayout ItemsLayout { get; set; }
Property Value
ItemsOrientation
Gets or sets the orientation of the legend items.
The possible values are System.
Declaration
public Orientation ItemsOrientation { get; set; }
Property Value
System.
|
LegendTitle
Gets or sets the legend title text.
Declaration
public string LegendTitle { get; set; }
Property Value
System.
|
Provider
Gets or sets the provider for the items that will be displayed.
Declaration
public ILegendInfoProvider Provider { get; set; }
Property Value
ScrollViewElement
Gets the scroll view element which hosts the stack element with legend items.
Declaration
public ScrollViewElement ScrollViewElement { get; }
Property Value
StackElement
Gets the stack element used for organizing the legend items.
Declaration
public StackLayoutElement StackElement { get; }
Property Value
TitleElement
Gets the title element.
Declaration
public LegendTitleElement TitleElement { get; }
Property Value
TitlePosition
Gets or sets the position of the legend title.
Declaration
public TitlePosition TitlePosition { get; set; }
Property Value
WrapPanelElement
Gets the wrap panel element used for organizing the legend items.
Declaration
public WrapLayoutPanel WrapPanelElement { get; }
Property Value
Methods
ArrangeOverride(SizeF)
Arranges the elements.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System. The final size. |
Returns
System.
|
Overrides
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateLegendTitleElement()
Creates the legend title element.
Declaration
protected virtual LegendTitleElement CreateLegendTitleElement()
Returns
CreateScrollViewElement()
Creates the scroll view element.
Declaration
protected virtual ScrollViewElement CreateScrollViewElement()
Returns
CreateStackElement()
Creates the stack element.
Declaration
protected virtual StackLayoutElement CreateStackElement()
Returns
CreateWrapElement()
Creates the wrap panel element.
Declaration
protected virtual WrapLayoutPanel CreateWrapElement()
Returns
DisposeManagedResources()
Disposes the managed resources.
Declaration
protected override void DisposeManagedResources()
Overrides
InitializeFields()
Initializes the fields.
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Measures the space required by the Rad
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System. The size that is available to the Rad |
Returns
System. The minimum size required by the element to be completely visible. Cannot be infinity. |
Overrides
Remarks
In this method call to the Measure method of each child must be made.
OnLegendInfosCollectionChanged(NotifyCollectionChangedEventArgs, Boolean)
Raises the Legend
Declaration
protected virtual void OnLegendInfosCollectionChanged(NotifyCollectionChangedEventArgs e, bool providerChange)
Parameters
Notify The Notify |
System. The provider change. |
OnVisualItemCreating(LegendItem)
Called when [visual item creating].
Declaration
protected virtual LegendItemElement OnVisualItemCreating(LegendItem item)
Parameters
Legend The item. |
Returns
Events
VisualItemCreating
Occurs when [visual item creating].
Declaration
public event LegendItemElementCreatingEventHandler VisualItemCreating