//------------------------------------------------------------- // // Copyright © Microsoft Corporation. All Rights Reserved. // //------------------------------------------------------------- // @owner=alexgor, deliant, victark using System; using System.Collections.Generic; using System.Text; using System.Collections; #if WINFORMS_CONTROL namespace System.Windows.Forms.DataVisualization.Charting #else namespace System.Web.UI.DataVisualization.Charting #endif { /// /// IChartElement is implemented by both ChartElements and ChartElementCollection to provide a unified access to Parent/Common elements. /// internal interface IChartElement { //Properties IChartElement Parent { get; set; } CommonElements Common { get; } //Methods void Invalidate(); } /// /// Named controller interface allows ChartNamedElements to check the uniqueness of their names /// internal interface INameController { /// /// Determines whether is the name us unique. /// /// The name. /// /// true if is the name us unique; otherwise, false. /// bool IsUniqueName(string name); /// /// Gets or sets a value indicating whether this instance is in edit mode by collecrtion editor. /// /// /// true if this instance the colection is editing; otherwise, false. /// bool IsColectionEditing { get; set; } /// /// Does the snapshot of collection items. /// /// if set to true collection items will be saved. /// The changing callback. /// The changed callback. void DoSnapshot(bool save, EventHandler changingCallback, EventHandler changedCallback); /// /// Gets the snapshot of saved collection items. /// /// The snapshot. IList Snapshot {get;} /// /// Raises the event. /// /// The instance containing the event data. void OnNameReferenceChanged(NameReferenceChangedEventArgs e); /// /// Raises the event. /// /// The instance containing the event data. void OnNameReferenceChanging(NameReferenceChangedEventArgs e); } }