ChartEventArgs Class
- Namespace
TXTextControl.DataVisualization
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXTextControl.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXTextControl.from the setup.dll
- Inherits
- Event
Args - Chart
Event Args
- Event
Description
The ChartEventArgs class provides data for all events that occur with charts. These are the TextControl.ChartCreated, TextControl.ChartDeleted, TextControl.ChartClicked, TextControl.ChartDoubleClicked, TextControl.ChartRightClicked, TextControl.ChartMoved TextControl.ChartSelected, TextControl.ChartDeselected and TextControl.ChartSized events.
Syntax
public class ChartEventArgs : EventArgsPublic Class ChartEventArgs
Inherits EventArgsExamples
The following example uses ChartEventArgs.ChartFrame while handling ChartClicked.
textControl.ChartClicked += (_, e) =>
{
if (e.ChartFrame != null)
{
e.ChartFrame.DescriptiveText = "Quarterly sales by region";
}
};AddHandler textControl.ChartClicked,
Sub(sender, e)
If e.ChartFrame IsNot Nothing Then
e.ChartFrame.DescriptiveText = "Quarterly sales by region"
End If
End SubMembers
Properties
| Property | Description |
|---|---|
| ChartFrame | Gets an object that represents the chart which causes the event. It is of the type DataVisualization.ChartFrame. |