Class VirtualizingCellUIElementBin<T>
This class implements a cache of UIElement of the given type parameter T. It is used by the VirtualizingCellUIElementBin<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<ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>
VirtualizingCellUIElementBin<T>
Implements
System.Collections.Generic.IDictionary<ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>>
System.Collections.IDictionary
System.Collections.ICollection
System.Collections.Generic.IReadOnlyDictionary<ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>
System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>>
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<ISpreadsheetCellRenderer, 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.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.Add(Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.Clear()
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.Comparer
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.ContainsKey(Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.ContainsValue(System.Collections.Generic.Queue<System.WeakReference>)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.Count
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.GetEnumerator()
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.Item[Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer]
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.Keys
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.OnDeserialization(System.Object)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.Remove(Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>>.Add(System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>>.Contains(System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>>.CopyTo(System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>[], System.Int32)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>>.IsReadOnly
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>>.Remove(System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.IDictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.Keys
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.IDictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.Values
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>>.GetEnumerator()
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.IReadOnlyDictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.Keys
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.IReadOnlyDictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.Values
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.ICollection.IsSynchronized
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.ICollection.SyncRoot
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.Add(System.Object, System.Object)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.Contains(System.Object)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.get_Item(System.Object)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.GetEnumerator()
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.IsFixedSize
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.IsReadOnly
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.Item[System.Object]
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.Keys
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.Remove(System.Object)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.set_Item(System.Object, System.Object)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.Values
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IEnumerable.GetEnumerator()
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>>.TryGetValue(Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, System.Collections.Generic.Queue<System.WeakReference>)
System.Collections.Generic.Dictionary<Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.ISpreadsheetCellRenderer, 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.CellRenderer
Assembly: Syncfusion.Spreadsheet.Windows.dll
Syntax
public class VirtualizingCellUIElementBin<T> : Dictionary<ISpreadsheetCellRenderer, Queue<WeakReference>>, IDictionary<ISpreadsheetCellRenderer, Queue<WeakReference>>, ICollection<KeyValuePair<ISpreadsheetCellRenderer, Queue<WeakReference>>>, IDictionary, ICollection, IReadOnlyDictionary<ISpreadsheetCellRenderer, Queue<WeakReference>>, IReadOnlyCollection<KeyValuePair<ISpreadsheetCellRenderer, Queue<WeakReference>>>, IEnumerable<KeyValuePair<ISpreadsheetCellRenderer, Queue<WeakReference>>>, IEnumerable, ISerializable, IDeserializationCallback where T : Control
Type Parameters
Name | Description |
---|---|
T | Type of the Element |
Constructors
VirtualizingCellUIElementBin()
Declaration
public VirtualizingCellUIElementBin()
Properties
Item[ISpreadsheetCellRenderer]
Gets the System.Collections.Generic.Queue<> for the specified Renderer.
Declaration
public Queue<WeakReference> this[ISpreadsheetCellRenderer renderer] { get; }
Parameters
Type | Name | Description |
---|---|---|
ISpreadsheetCellRenderer | renderer |
Property Value
Type | Description |
---|---|
System.Collections.Generic.Queue<System.WeakReference> | An instance of System.Collections.Generic.Queue<>. |
Methods
Dequeue(ISpreadsheetCellRenderer)
Dequeues an UIElement from the specified canvas.
Declaration
public T Dequeue(ISpreadsheetCellRenderer renderer)
Parameters
Type | Name | Description |
---|---|---|
ISpreadsheetCellRenderer | renderer | An instance of ISpreadsheetCellRenderer. |
Returns
Type | Description |
---|---|
T | An UIElement |
Enqueue(ISpreadsheetCellRenderer, T)
Enqueues the specified UI element.
Declaration
public void Enqueue(ISpreadsheetCellRenderer renderer, T uiElement)
Parameters
Type | Name | Description |
---|---|---|
ISpreadsheetCellRenderer | renderer | An instance of ISpreadsheetCellRenderer. |
T | uiElement | The UIElement. |
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