1
//-------------------------------------------------------------
2 // <copyright company=’Microsoft Corporation’>
3 // Copyright © Microsoft Corporation. All Rights Reserved.
5 //-------------------------------------------------------------
6 // @owner=alexgor, deliant, victark
9 using System
.Collections
.Generic
;
11 using System
.Collections
;
14 namespace System
.Windows
.Forms
.DataVisualization
.Charting
16 namespace System
.Web
.UI
.DataVisualization
.Charting
20 /// IChartElement is implemented by both ChartElements and ChartElementCollection to provide a unified access to Parent/Common elements.
22 internal interface IChartElement
25 IChartElement Parent { get; set; }
26 CommonElements Common { get; }
34 /// Named controller interface allows ChartNamedElements to check the uniqueness of their names
36 internal interface INameController
40 /// Determines whether is the name us unique.
42 /// <param name="name">The name.</param>
44 /// <c>true</c> if is the name us unique; otherwise, <c>false</c>.
46 bool IsUniqueName(string name
);
48 /// Gets or sets a value indicating whether this instance is in edit mode by collecrtion editor.
51 /// <c>true</c> if this instance the colection is editing; otherwise, <c>false</c>.
53 bool IsColectionEditing { get; set; }
55 /// Does the snapshot of collection items.
57 /// <param name="save">if set to <c>true</c> collection items will be saved.</param>
58 /// <param name="changingCallback">The changing callback.</param>
59 /// <param name="changedCallback">The changed callback.</param>
60 void DoSnapshot(bool save
,
61 EventHandler
<NameReferenceChangedEventArgs
> changingCallback
,
62 EventHandler
<NameReferenceChangedEventArgs
> changedCallback
);
64 /// Gets the snapshot of saved collection items.
66 /// <value>The snapshot.</value>
69 /// Raises the <see cref="E:NameReferenceChanged"/> event.
71 /// <param name="e">The <see cref="NameReferenceChangedEventArgs"/> instance containing the event data.</param>
72 void OnNameReferenceChanged(NameReferenceChangedEventArgs e
);
74 /// Raises the <see cref="E:NameReferenceChanging"/> event.
76 /// <param name="e">The <see cref="NameReferenceChangedEventArgs"/> instance containing the event data.</param>
77 void OnNameReferenceChanging(NameReferenceChangedEventArgs e
);