Class GraphicCellRendererCollection
Collection of IGrapihcCellRenderer
Implements
Namespace: Syncfusion.UI.Xaml.Spreadsheet.GraphicCells
Assembly: Syncfusion.SfSpreadsheet.WPF.dll
Syntax
public class GraphicCellRendererCollection : Disposable, IDisposable, ICollection, IEnumerable
Constructors
GraphicCellRendererCollection(GraphicModel)
Declaration
public GraphicCellRendererCollection(GraphicModel model)
Parameters
Type | Name | Description |
---|---|---|
GraphicModel | model |
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]
Indexer will return the correspoding renderer for the corresponding Key value.
Declaration
public IGraphicCellRenderer this[string key] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | key |
Property Value
Type |
---|
IGraphicCellRenderer |
Keys
Get the Key values of Renderes
Declaration
public ICollection Keys { get; }
Property Value
Type |
---|
System.Collections.ICollection |
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 Renderes in the collection
Declaration
public ICollection Values { get; }
Property Value
Type |
---|
System.Collections.ICollection |
Methods
Add(String, IGraphicCellRenderer)
Add the Renderes to the Renderer dictionary.
Declaration
public void Add(string key, IGraphicCellRenderer renderer)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | |
IGraphicCellRenderer | renderer |
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 |
Returns
Type |
---|
System.Boolean |
ContainsValue(IGraphicCellRenderer)
Cheks whether the Render Dictionary contains the corresponding renderer.
Declaration
public bool ContainsValue(IGraphicCellRenderer cellRenderer)
Parameters
Type | Name | Description |
---|---|---|
IGraphicCellRenderer | cellRenderer |
Returns
Type |
---|
System.Boolean |
CopyTo(IGraphicCellRenderer[], Int32)
Copy the Renderer values to Array.
Declaration
public void CopyTo(IGraphicCellRenderer[] array, int index)
Parameters
Type | Name | Description |
---|---|---|
IGraphicCellRenderer[] | array | |
System.Int32 | index |
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.Component class and its Dispose member.
GetEnumerator()
Returns the Enumerator for retriving the values.
Declaration
public IEnumerator GetEnumerator()
Returns
Type |
---|
System.Collections.IEnumerator |
Remove(String)
Remove the Renderer from dictionary for corresponding key vallue
Declaration
public void Remove(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key |