menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridCellsMemento - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GridCellsMemento

    Implements information needed for Xml serialization relating to column or row styles, individual cell StyleInfo objects, etc.

    Inheritance
    System.Object
    GridCellsMemento
    Implements
    System.Runtime.Serialization.ISerializable
    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.Design
    Assembly: Syncfusion.Grid.Windows.dll
    Syntax
    public class GridCellsMemento : ISerializable

    Constructors

    GridCellsMemento()

    Initializes the new instance of the GridCellsMemento class.

    Declaration
    public GridCellsMemento()

    GridCellsMemento(GridControl)

    Creates the GridCellsMemento object, initialized from the supplied GridControl.

    Declaration
    public GridCellsMemento(GridControl grid)
    Parameters
    Type Name Description
    GridControl grid

    The GridControl to initialize the GridCellsMemento object.

    GridCellsMemento(SerializationInfo, StreamingContext)

    Initializes a new GridCellsMemento from a serialization stream.

    Declaration
    protected GridCellsMemento(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

    BanneredRanges

    Gets or sets Collection of GridNonImmutableRangeInfo objects that are to be treated as Bannered

    Declaration
    public GridNonImmutableRangeInfoCollection BanneredRanges { get; set; }
    Property Value
    Type
    GridNonImmutableRangeInfoCollection

    Cells

    Gets or sets collection of GridCellInfo objects containing the cell data to save out.

    Declaration
    public GridCellInfoCollection Cells { get; set; }
    Property Value
    Type
    GridCellInfoCollection

    CoveredRanges

    Gets or sets Collection of GridNonImmutableRangeInfo objects that are to be treated as Covered

    Declaration
    public GridNonImmutableRangeInfoCollection CoveredRanges { get; set; }
    Property Value
    Type
    GridNonImmutableRangeInfoCollection

    GridBaseStylesToSerialize

    Gets or sets GridBaseStyleCollection to Serialize

    Declaration
    public GridBaseStyleCollection GridBaseStylesToSerialize { get; set; }
    Property Value
    Type
    GridBaseStyleCollection

    GridColStyles

    Gets or sets the grid column styles.

    Declaration
    public ColumnStyles GridColStyles { get; set; }
    Property Value
    Type
    ColumnStyles

    GridRowStyles

    Gets or sets the grid row styles.

    Declaration
    public RowStyles GridRowStyles { get; set; }
    Property Value
    Type
    RowStyles

    Methods

    ApplyTo(GridControl)

    Applies the values contained in the GridCellsMemento object to the supplied GridControl.

    Declaration
    public void ApplyTo(GridControl grid)
    Parameters
    Type Name Description
    GridControl grid

    The GridControl to apply the values to.

    GetObjectData(SerializationInfo, StreamingContext)

    Returns the data needed to serialize the GridCellsMemento.

    Declaration
    protected 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.

    InitializeFrom(GridControl)

    Initializes the GridCellsMemento object with styles, data, etc from the supplied GridControl.

    Declaration
    public void InitializeFrom(GridControl grid)
    Parameters
    Type Name Description
    GridControl grid

    The GridControl that the values will be retrieved from

    Explicit Interface Implementations

    ISerializable.GetObjectData(SerializationInfo, StreamingContext)

    Implements the ISerializable interface and returns the data needed to serialize the GridCellsMemento.

    Declaration
    void ISerializable.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.

    Implements

    System.Runtime.Serialization.ISerializable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved