ChartLegendElement
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.ChartView.dll
Syntax:
public class ChartLegendElement : StackLayoutElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementStackLayoutElementChartLegendElement...
Implements:
Inherited Members
Constructors
Initializes a new instance of the ChartLegendElement class.
public ChartLegendElement(RadChartElement chartElement)
The chart element.
Properties
Collection of LegendItem objects that hold the information required for display in a legend.
public LegendItemCollection Items { get; }
Gets or sets the orientation of the legend items. The possible values are Horizontal and Vertical.
public Orientation ItemsOrientation { get; set; }
Gets or sets the legend title text.
public string LegendTitle { get; set; }
Gets or sets the provider for the items that will be displayed.
public ILegendInfoProvider Provider { get; set; }
Gets the scroll view element which hosts the stack element with legend items.
public ScrollViewElement ScrollViewElement { get; }
Gets the stack element used for organizing the legend items.
public StackLayoutElement StackElement { get; }
Gets the title element.
public LegendTitleElement TitleElement { get; }
Gets or sets the position of the legend title.
public TitlePosition TitlePosition { get; set; }
Gets the wrap panel element used for organizing the legend items.
public WrapLayoutPanel WrapPanelElement { get; }
Methods
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
Creates the legend title element.
Creates the scroll view element.
Creates the stack element.
Creates the wrap panel element.
Disposes the managed resources.
protected override void DisposeManagedResources()
Overrides:
Initializes the fields.
protected override void InitializeFields()
Overrides:
Measures the space required by the RadElement Used by the layout system.
protected override SizeF MeasureOverride(SizeF availableSize)
The size that is available to the RadElement. The available size can be infinity (to take the full size of the element)
Returns:The minimum size required by the element to be completely visible. Cannot be infinity.
Overrides:
In this method call to the Measure method of each child must be made.
Raises the event.
protected virtual void OnLegendInfosCollectionChanged(NotifyCollectionChangedEventArgs e, bool providerChange)
The NotifyCollectionChangedEventArgs instance containing the event data.
providerChangeboolThe provider change.
Called when [visual item creating].
protected virtual LegendItemElement OnVisualItemCreating(LegendItem item)
The item.
Returns:Events
Occurs when [visual item creating].
public event LegendItemElementCreatingEventHandler VisualItemCreating