ChartObjects.CreateCursorValues(WpfPlot, string) method¶
Defined in
Type: ChartObjects
Namespace: CrissCross.WPF.Plot
Assembly: CrissCross.WPF.Plot.dll
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481
public void CreateCursorValues(WpfPlot wpfPlot, string colorName)
Summary: Initializes visual elements on the specified plot to highlight cursor positions, including a crosshair, marker, and text label using the provided color.
Parameters
| Name | Type | Description |
|---|---|---|
wpfPlot | WpfPlot | The plot control on which cursor-related visual elements will be created. If null, no elements are created. |
colorName | string | The name of the color to apply to the crosshair, marker, and text label. Must correspond to a valid system color name. |
Remarks
The created visual elements are initially hidden and can be shown or updated to reflect cursor interactions. This method does not modify the plot if the provided control is null.