Selector overviewConstructors
Public Events
Dragged | Called when the end-user releases the left mouse button after a dragging operation. |
Dragging | Called when the end-user is moving the mouse while pressing the left mouse button when the mouse is over a chart element. |
Resized | Called when the end-user releases the left mouse button after a chart resizing operation. |
Resizing | Called when the end-user moves the mouse while resizing the chart. |
Selected | Called when the end-user clicks a chart element that is different than the previously selected one. |
Public Methods
Public Properties
Active (inherited from Tool) | Enables/Disables the indexed Tool. |
AllowDrag | Permits the end user to move selected chart elements like series marks, legend, titles, etc. |
AllowResizeChart | When True, the selector tool enables clicking the chart to select it and drag the chart corner handles to resize it. |
Annotation | |
Brush | Element Brush characteristics. |
Chart (inherited from TeeBase) | Chart associated with this object |
Description | Gets descriptive text. |
DraggingShape | Returns the object that is being currently dragged. |
DrawHandles | Controls if the selector tool should draw the small black rectangles at selected item corners. |
HandleSize | The size in pixels of the small black rectangles displayed at selected item corners. |
Part | |
Pen | Element Brush characteristics. |
SelectableParts | Gets and sets which parts of the chart can be selected. When null, as default, all parts can be selected.
Objects can be one of the ChartClickedPartStyle enumeration or a Series or
Axis.
private Points series1;
private Selector tool1;
private void InitializeChart()
{
tChart1.Series.Add(series1 = new Points());
tChart1.Tools.Add(tool1 = new Selector());
series1.FillSampleValues();
//Let's only allow the left axis and the Legend to be selected.
tool1.SelectableParts = new object[] { tChart1.Axes.Left, ChartClickedPartStyle.Legend };
tool1.Selected += new SelectorSelectedEventHandler(tool1_Selected);
}
void tool1_Selected(object sender, EventArgs e)
{
Steema.TeeChart.Editors.EditorUtils.EditChartPart(tChart1.Chart, tool1.Part, false);
}
|
Selection | |
Series | The currently selected chart Series, if any. |
Summary | Gets detailed descriptive text. |
Tag (inherited from TeeBase) | Gets or sets an object that provides additional data about the TChart object. |
Wall | The currently selected chart Wall, if any. |
See Also
Selector Class | Steema.TeeChart.Tools Namespace