Class GridCellRendererCollection
Implements
Namespace: Syncfusion.UI.Xaml.CellGrid.GridCellRenderer
Assembly: Syncfusion.SfCellGrid.WPF.dll
Syntax
public class GridCellRendererCollection : Disposable, IDisposable, ICollection, IEnumerable
Constructors
GridCellRendererCollection(SfCellGrid)
Declaration
public GridCellRendererCollection(SfCellGrid cellgrid)
Parameters
Type | Name | Description |
---|---|---|
SfCellGrid | cellgrid |
Properties
Count
Gets the number of elements contained in the System.Collections.ICollection.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The number of elements contained in the System.Collections.ICollection. |
IsSynchronized
Gets a value indicating whether access to the System.Collections.ICollection is synchronized (thread safe).
Declaration
public bool IsSynchronized { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if access to the System.Collections.ICollection is synchronized (thread safe); otherwise, false. |
Item[String]
Gets or sets the value indicating the Indexer which will return the renderer for the corresponding key value.
Declaration
public IGridCellRenderer this[string key] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | key | An Index of the renderer. |
Property Value
Type | Description |
---|---|
IGridCellRenderer | An instance of IGridCellRenderer. |
Keys
Gets the value indicating the keys in the renderer collection.
Declaration
public ICollection Keys { get; }
Property Value
Type | Description |
---|---|
System.Collections.ICollection | Keys in the hashtable. |
SyncRoot
Gets an object that can be used to synchronize access to the System.Collections.ICollection.
Declaration
public object SyncRoot { get; }
Property Value
Type | Description |
---|---|
System.Object | An object that can be used to synchronize access to the System.Collections.ICollection. |
Values
Gets the value indicating the renderers in the collection.
Declaration
public ICollection Values { get; }
Property Value
Type | Description |
---|---|
System.Collections.ICollection | The values in the hashtable. |
Methods
Add(String, IGridCellRenderer)
Add the Renderers to the Renderer dictionary.
Declaration
public void Add(string key, IGridCellRenderer renderer)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key to the SpreadsheetCellRenderer Collection. |
IGridCellRenderer | renderer | An instance of IGridCellRenderer. |
Clear()
Clears the values in Renderer Dictionary.
Declaration
public void Clear()
ContainsKey(String)
Checks whether the Renderer Dictionary contains the corresponding renderer Key.
Declaration
public bool ContainsKey(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key to the SpreadsheetCellRenderer Collection. |
Returns
Type | Description |
---|---|
System.Boolean | True if the collection contains the key;otherwise False. |
ContainsValue(IGridCellRenderer)
Checks whether the Renderer Dictionary contains the corresponding renderer.
Declaration
public bool ContainsValue(IGridCellRenderer cellRenderer)
Parameters
Type | Name | Description |
---|---|---|
IGridCellRenderer | cellRenderer | An instance of |
Returns
Type | Description |
---|---|
System.Boolean | True if the collection contains specific value; otherwise false. |
CopyTo(IGridCellRenderer[], Int32)
Copies the renderer elements of the System.Collections.ICollection to an System.Array, starting at a particular System.Array index.
Declaration
public void CopyTo(IGridCellRenderer[] array, int index)
Parameters
Type | Name | Description |
---|---|---|
IGridCellRenderer[] | array | Collection of |
System.Int32 | index | Index of the renderer element. |
CopyTo(Array, Int32)
Copies the elements of the System.Collections.ICollection to an System.Array, starting at a particular System.Array index.
Declaration
public void CopyTo(Array array, int index)
Parameters
Type | Name | Description |
---|---|---|
System.Array | array | The one-dimensional System.Array that is the destination of the elements copied from System.Collections.ICollection. The System.Array must have zero-based indexing. |
System.Int32 | index | The zero-based index in |
Exceptions
Type | Condition |
---|---|
System.ArgumentException |
|
System.ArgumentOutOfRangeException |
|
System.ArgumentNullException |
|
Dispose(Boolean)
Releases the unmanaged resources used by the Component and optionally releases the managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
Overrides
Remarks
See the documentation for the System.ComponentModel class and its Dispose member.
GetEnumerator()
Returns the Enumerator that iterates through collection for retriving the values.
Declaration
public IEnumerator GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator | Content of the SpreadsheetCellRenderer collection |
Remove(String)
Remove the Renderer from dictionary for corresponding key value.
Declaration
public void Remove(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key to the SpreadsheetCellRenderer Collection. |