Updates referencesource to .NET 4.7
[mono-project.git] / mcs / class / referencesource / System.Web.DataVisualization / Common / General / BaseInterfaces.cs
blobdb61a2899f3f9a6a01ea58a885cf77e3a73a0510
1 //-------------------------------------------------------------
2 // <copyright company=’Microsoft Corporation’>
3 // Copyright © Microsoft Corporation. All Rights Reserved.
4 // </copyright>
5 //-------------------------------------------------------------
6 // @owner=alexgor, deliant, victark
8 using System;
9 using System.Collections.Generic;
10 using System.Text;
11 using System.Collections;
13 #if WINFORMS_CONTROL
14 namespace System.Windows.Forms.DataVisualization.Charting
15 #else
16 namespace System.Web.UI.DataVisualization.Charting
17 #endif
19 /// <summary>
20 /// IChartElement is implemented by both ChartElements and ChartElementCollection to provide a unified access to Parent/Common elements.
21 /// </summary>
22 internal interface IChartElement
24 //Properties
25 IChartElement Parent { get; set; }
26 CommonElements Common { get; }
28 //Methods
29 void Invalidate();
33 /// <summary>
34 /// Named controller interface allows ChartNamedElements to check the uniqueness of their names
35 /// </summary>
36 internal interface INameController
39 /// <summary>
40 /// Determines whether is the name us unique.
41 /// </summary>
42 /// <param name="name">The name.</param>
43 /// <returns>
44 /// <c>true</c> if is the name us unique; otherwise, <c>false</c>.
45 /// </returns>
46 bool IsUniqueName(string name);
47 /// <summary>
48 /// Gets or sets a value indicating whether this instance is in edit mode by collecrtion editor.
49 /// </summary>
50 /// <value>
51 /// <c>true</c> if this instance the colection is editing; otherwise, <c>false</c>.
52 /// </value>
53 bool IsColectionEditing { get; set; }
54 /// <summary>
55 /// Does the snapshot of collection items.
56 /// </summary>
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);
63 /// <summary>
64 /// Gets the snapshot of saved collection items.
65 /// </summary>
66 /// <value>The snapshot.</value>
67 IList Snapshot {get;}
68 /// <summary>
69 /// Raises the <see cref="E:NameReferenceChanged"/> event.
70 /// </summary>
71 /// <param name="e">The <see cref="NameReferenceChangedEventArgs"/> instance containing the event data.</param>
72 void OnNameReferenceChanged(NameReferenceChangedEventArgs e);
73 /// <summary>
74 /// Raises the <see cref="E:NameReferenceChanging"/> event.
75 /// </summary>
76 /// <param name="e">The <see cref="NameReferenceChangedEventArgs"/> instance containing the event data.</param>
77 void OnNameReferenceChanging(NameReferenceChangedEventArgs e);