Class GraphicCellUIElementBin<T>
This class implements a cache of UIElement of the given type parameter T. It is used by the GraphicCellRendererBase<T> renderer to recycle UIElement elements for cells that were scrolled out of view and delay unloading of UIElements. This reduces the number of times the UIElement needs to be created or unloaded and instead only the contents of the UIElement will be reinitialized with cell contents.
Inheritance
System.Object
System.Collections.Generic.Dictionary<IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>
GraphicCellUIElementBin<T>
Implements
System.Collections.Generic.IDictionary<IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>>
System.Collections.IDictionary
System.Collections.ICollection
System.Collections.Generic.IReadOnlyDictionary<IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>
System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>>
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>>
System.Collections.IEnumerable
System.Runtime.Serialization.ISerializable
System.Runtime.Serialization.IDeserializationCallback
Inherited Members
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.Add(Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.Clear()
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.Comparer
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.ContainsKey(Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.ContainsValue(System.Collections.Generic.Queue<System.WeakReference>)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.Count
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.GetEnumerator()
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.Item[Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer]
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.Keys
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.OnDeserialization(System.Object)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.Remove(Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>>.Add(System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>>.Contains(System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>>.CopyTo(System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>[], System.Int32)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>>.IsReadOnly
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>>.Remove(System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.IDictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.Keys
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.IDictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.Values
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>>.GetEnumerator()
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.IReadOnlyDictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.Keys
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.IReadOnlyDictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.Values
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.ICollection.IsSynchronized
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.ICollection.SyncRoot
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.Add(System.Object, System.Object)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.Contains(System.Object)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.get_Item(System.Object)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.GetEnumerator()
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.IsFixedSize
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.IsReadOnly
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.Item[System.Object]
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.Keys
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.Remove(System.Object)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.set_Item(System.Object, System.Object)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.Values
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IEnumerable.GetEnumerator()
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.TryGetValue(Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.IGraphicCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.Values
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms.Spreadsheet.GraphicCells
Assembly: Syncfusion.Spreadsheet.Windows.dll
Syntax
public class GraphicCellUIElementBin<T> : Dictionary<IGraphicCellRenderer, Queue<WeakReference>>, IDictionary<IGraphicCellRenderer, Queue<WeakReference>>, ICollection<KeyValuePair<IGraphicCellRenderer, Queue<WeakReference>>>, IDictionary, ICollection, IReadOnlyDictionary<IGraphicCellRenderer, Queue<WeakReference>>, IReadOnlyCollection<KeyValuePair<IGraphicCellRenderer, Queue<WeakReference>>>, IEnumerable<KeyValuePair<IGraphicCellRenderer, Queue<WeakReference>>>, IEnumerable, ISerializable, IDeserializationCallback where T : Control
Type Parameters
Name | Description |
---|---|
T | Type of the Element |
Constructors
GraphicCellUIElementBin()
Declaration
public GraphicCellUIElementBin()
Properties
Item[IGraphicCellRenderer]
Gets the System.Collections.Generic.Queue<> for the specified Renderer.
Declaration
public Queue<WeakReference> this[IGraphicCellRenderer renderer] { get; }
Parameters
Type | Name | Description |
---|---|---|
IGraphicCellRenderer | renderer |
Property Value
Type |
---|
System.Collections.Generic.Queue<System.WeakReference> |
Methods
Dequeue(IGraphicCellRenderer)
Dequeues an UIElement from the specified canvas.
Declaration
public T Dequeue(IGraphicCellRenderer renderer)
Parameters
Type | Name | Description |
---|---|---|
IGraphicCellRenderer | renderer | The canvas. |
Returns
Type |
---|
T |
Enqueue(IGraphicCellRenderer, T)
Enqueues the specified UI element.
Declaration
public void Enqueue(IGraphicCellRenderer renderer, T uiElement)
Parameters
Type | Name | Description |
---|---|---|
IGraphicCellRenderer | renderer | |
T | uiElement | The UI element. |
Implements
System.Collections.Generic.IDictionary<TKey, TValue>
System.Collections.Generic.ICollection<T>
System.Collections.IDictionary
System.Collections.ICollection
System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
System.Runtime.Serialization.ISerializable
System.Runtime.Serialization.IDeserializationCallback