Class MapLegendElement
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.RadMap.dll
Syntax
public class MapLegendElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
MapLegendElement()
MapLegendElement(IMapLegendInfoProvider)
Initializes a new instance of the Map
Declaration
public MapLegendElement(IMapLegendInfoProvider legendInfoProvider)
Parameters
IMap The legend information provider. |
Fields
HorizontalOrientationItemSpacingProperty
Declaration
public static RadProperty HorizontalOrientationItemSpacingProperty
Field Value
OrientationProperty
VerticalOrientationItemSpacingProperty
Declaration
public static RadProperty VerticalOrientationItemSpacingProperty
Field Value
Properties
Converter
Gets or sets the converter used for converting an item to the text that will be displayed for it.
Declaration
public TypeConverter Converter { get; set; }
Property Value
System. The converter. |
HorizontalOrientationItemSpacing
Gets or sets the item spacing when the orientation of the legend is vertical.
Declaration
public int HorizontalOrientationItemSpacing { get; set; }
Property Value
System. The item spacing. |
ItemStackElement
Gets the item stack element.
Declaration
public StackLayoutElement ItemStackElement { get; }
Property Value
Stack The item stack element. |
LegendInfoProvider
Gets or sets the legend information provider.
Declaration
public IMapLegendInfoProvider LegendInfoProvider { get; set; }
Property Value
IMap The legend information provider. |
Orientation
Gets or sets the orientation of the items in the legend.
Declaration
public Orientation Orientation { get; set; }
Property Value
System. The orientation. |
StackElement
Gets the stack element.
Declaration
public StackLayoutElement StackElement { get; }
Property Value
Stack The stack element. |
SubtitleElement
Gets the title element.
Declaration
public MapLegendSubtitleElement SubtitleElement { get; }
Property Value
Map The title element. |
TitleElement
Gets the title element.
Declaration
public MapLegendTitleElement TitleElement { get; }
Property Value
Map The title element. |
VerticalOrientationItemSpacing
Gets or sets the item spacing when the orientation of the legend is vertical.
Declaration
public int VerticalOrientationItemSpacing { get; set; }
Property Value
System. The item spacing. |
Methods
CreateChildElements()
Declaration
protected override void CreateChildElements()
Overrides
CreateItemsStackLayoutElement()
Creates a item stack layout element.
Declaration
protected virtual StackLayoutElement CreateItemsStackLayoutElement()
Returns
Stack StackLayoutElement. |
CreateMapLegendItemElement(MapLegendInfoItem)
Creates a map legend item element base on the provided item.
Declaration
protected virtual MapLegendItemElement CreateMapLegendItemElement(MapLegendInfoItem item)
Parameters
Map The item. |
Returns
Map MapLegendItemElement. |
CreateStackLayoutElement()
Creates a stack layout element.
Declaration
protected virtual StackLayoutElement CreateStackLayoutElement()
Returns
Stack StackLayoutElement. |
CreateSubtitleElement()
Creates a subtitle element.
Declaration
protected virtual MapLegendSubtitleElement CreateSubtitleElement()
Returns
Map MapLegendTitleElement. |
CreateTitleElement()
Creates a title element.
Declaration
protected virtual MapLegendTitleElement CreateTitleElement()
Returns
Map MapLegendTitleElement. |
GetDisplayText(MapLegendInfoItem)
Gets the display text for a given item.
Declaration
protected virtual string GetDisplayText(MapLegendInfoItem item)
Parameters
Map The item. |
Returns
System. System.String. |
Initialize()
Initializes the items in the legend based on the LegendInfoProvider.
Declaration
public virtual void Initialize()
InitializeFields()
Declaration
protected override void InitializeFields()
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)