VisualElement<TDrawingContext>
Class

Assembly LiveChartsCore
Namespace LiveChartsCore.VisualElements

Summary:
Defines the base visual element class, inheriting from this class makes it easy to implement a visual element.

Type parameters:
TDrawingContext *summary not found*
Inheritance:
Object =>
ChartElement<TDrawingContext> =>
VisualElement<TDrawingContext>
Implements:
IChartElement<TDrawingContext>
Derived:
AngularTicksVisual<TArcGeometry, TLineGeometry, TLabelGeometry, TDrawingContext>
BaseGeometryVisual<TDrawingContext>
BaseGeometryVisual<TDrawingContext>
LabelVisual<TLabelGeometry, TDrawingContext>
NeedleVisual<TGeometry, TLabelGeometry, TDrawingContext>
RelativePanel<TBackgroundGeometry, TDrawingContext>
StackPanel<TBackgroundGeometry, TDrawingContext>
TableLayout<TBackgroundGeometry, TDrawingContext>
BaseGeometryVisual<TDrawingContext>

Properties

X
Gets or sets the X coordinate [in Pixels or ChartValues, see LocationUnit].
Type: Double
Y
Gets or sets the Y coordinate [in Pixels or ChartValues, see LocationUnit].
Type: Double
Gets or sets the rotation.
Type: Double
Gets or sets the translate transform.
Type: LvcPoint
Gets or sets the unit of the X and Y properties.
Type: MeasureUnit
Gets or sets the axis index where the series is scaled in the X plane, the index must exist in the YAxes collection.
Type: Int32
Gets or sets the axis index where the series is scaled in the Y plane, the index must exist in the YAxes collection.
Type: Int32
Tag
Gets or sets the object that contains data about the control.
Type: Object

Events

Called when the pointer goes down on the visual.
Handler definition: VisualElementHandler<TDrawingContext>
Occurs when a property value changes.
Handler definition: PropertyChangedEventHandler

Methods

// Invalidates the IChartElement`1 in the user interface.
Chart<TDrawingContext> chart// The chart.
)
// Measures the element and returns the size.
Chart<TDrawingContext> chart// The chart.
)
// Deletes the IPaint`1 instances that changed from the user interface.
IChartView<TDrawingContext> chart// The chart.
)
// Removes the element from the UI.
Chart<TDrawingContext> chart// The chart.
)