private void UpdateDisplayedExtents(ChartExtents extents) { RectangleF e = extents.PrimaryExtents; lblZoomExtents.Text = string.Format(ZoomChangedDisplayFormatLeftRightTopBottom, e.Left, e.Right, e.Top, e.Bottom); }
private void btnViewChartExtents_ButtonClick(object sender, EventArgs e) { ChartExtents all = chart1.GetBoundariesOfData(); ChartExtents visible = chart1.GetBoundariesOfVisibleData(); const string fmt = @"All data {0} Visible data {1}"; MessageBox.Show(string.Format(fmt, all, visible), "Extents/boundaries of the data"); }