Class GridBaseCellModelFactory
GridCellModelFactory creates GridCellModelBase objects to be used in a GridModel.
Implements
Inherited Members
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.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public class GridBaseCellModelFactory : IGridCellModelFactory
Constructors
GridBaseCellModelFactory()
Initializes a new instance of GridBaseCellModelFactory class.
Declaration
public GridBaseCellModelFactory()
GridBaseCellModelFactory(Boolean)
Initializes a new instance of GridBaseCellModelFactory class and optionally marks it as "Default", allowing the grid to replace it with a derived factory at any time.
Declaration
public GridBaseCellModelFactory(bool isDefault)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isDefault | When True, marks this instance of GridBaseCellModelFactory as Default. |
Properties
IsDefault
Gets a value indicating whether the grid is allowed to replace this factory with a derived factory at any time.
Declaration
public virtual bool IsDefault { get; }
Property Value
Type |
---|
System.Boolean |
Methods
CreateCellModel(String, GridModel)
Creates GridCellModelBase objects to be used in a GridModel.
Declaration
public virtual GridCellModelBase CreateCellModel(string cellTypeName, GridModel pGrid)
Parameters
Type | Name | Description |
---|---|---|
System.String | cellTypeName | A cell type name that identifies the cell model to be instantiated. |
GridModel | pGrid | The GridModel the new cell model object should be associated with. |
Returns
Type | Description |
---|---|
GridCellModelBase | A cell model. |