Class GridRowColSizeDictionary
Implements the default dictionary used by the GridModelRowColSizeIndexer to store row heights and column widths.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public class GridRowColSizeDictionary : IGridRowColSizeDictionary, ISerializable
Remarks
This is the default implementation for IGridRowColSizeDictionary.
Constructors
GridRowColSizeDictionary()
Initialize a new instance of GridRowColSizeDictionary class.
Declaration
public GridRowColSizeDictionary()
GridRowColSizeDictionary(SerializationInfo, StreamingContext)
Initializes a new GridRowColSizeDictionary from a serialization stream.
Declaration
protected GridRowColSizeDictionary(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | An object that holds all the data needed to serialize or de-serialize this instance. |
System.Runtime.Serialization.StreamingContext | context | Describes the source and destination of the serialized stream specified by info. |
Properties
InnerDict
Gets InnerDictionary. Internal only.
Declaration
public GridIndexDictionary InnerDict { get; }
Property Value
Type |
---|
GridIndexDictionary |
Item[Int32]
The size of a given row or column index.
Declaration
public int this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type |
---|
System.Int32 |
Remarks
Modified
Gets or sets a value indicating whether the dictionary was modified.
Declaration
public bool Modified { get; set; }
Property Value
Type |
---|
System.Boolean |
Methods
GetObjectData(SerializationInfo, StreamingContext)
Implements the ISerializable interface and returns the data needed to serialize the GridRowColSizeDictionary.
Declaration
public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | A SerializationInfo object containing the information required to serialize the object. |
System.Runtime.Serialization.StreamingContext | context | A StreamingContext object containing the source and destination of the serialized stream. |
InsertItems(Int32, Int32)
Occurs when rows or columns are inserted.
Declaration
public void InsertItems(int index, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Row or column index. |
System.Int32 | count | Number of rows or columns. |
Remarks
MoveItems(Int32, Int32, Int32)
Occurs when rows or columns are moved.
Declaration
public void MoveItems(int from, int count, int dest)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | from | First row or column index. |
System.Int32 | count | Number of rows or columns. |
System.Int32 | dest | The Destination. |
Remarks
RemoveItems(Int32, Int32)
Occurs when rows or columns are removed.
Declaration
public void RemoveItems(int from, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | from | First row or column index. |
System.Int32 | count | Number of rows or columns. |
Remarks
ResetModified()
Resets the Modified flag.
Declaration
public void ResetModified()