VariableGeometryVisual<TDrawingContext>
Class

Assembly LiveChartsCore
Namespace LiveChartsCore.VisualElements

Summary:
Defines a visual element that is useful to create series miniatures in the tool tips and legends.

Type parameters:
TDrawingContext The type of the drawing context.
Inheritance:
Object =>
ChartElement<TDrawingContext> =>
VisualElement<TDrawingContext> =>
BaseGeometryVisual<TDrawingContext> =>
VariableGeometryVisual<TDrawingContext>
Implements:
IChartElement<TDrawingContext>
Derived:

Constructors

// Initializes a new instance of the VariableGeometryVisual`1 class.
ISizedGeometry<TDrawingContext> geometry//
)

Properties

Gets or sets the geometry.
Type: ISizedGeometry<TDrawingContext>
Gets or sets the height of the rectangle [in Pixels or ChartValues, see SizeUnit].
Type: Double
Gets or sets the width of the rectangle [in Pixels or ChartValues, see SizeUnit].
Type: Double
Gets or sets the unit of the Height and Width properties.
Type: MeasureUnit
Gets or sets the fill paint.
Type: IPaint<TDrawingContext>
Gets or sets the stroke paint.
Type: IPaint<TDrawingContext>
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
Gets or sets the clipping mode, clipping restricts the visual element for being drawn outside of the chart area (DrawMargin), default is XY, and means that anything outside the chart bounds will be ignored.
Type: ClipMode
Tag
Gets or sets the object that contains data about the control.
Type: Object

Events

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

Methods

// Measures the element and returns the size.
Chart<TDrawingContext> chart// The chart.
)
// Invalidates the IChartElement`1 in the user interface.
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.
)