menu

WinForms

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

    Show / Hide Table of Contents

    Class ChangeContext

    Represents a class that helps to create instance of the change. Also, it implements ISource interface, so it can be used as data source for data window.

    Inheritance
    System.Object
    ChangeContext
    Implements
    IChange
    ISource
    System.ICloneable
    System.IDisposable
    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)
    Namespace: Syncfusion.Windows.Forms.Edit.Implementation.IO
    Assembly: Syncfusion.Edit.Windows.dll
    Syntax
    public class ChangeContext : IChange, ISource, ICloneable, IDisposable

    Constructors

    ChangeContext(ChangeType, Byte[])

    Initializes a new instance of the ChangeContext class.

    Declaration
    public ChangeContext(ChangeType type, byte[] data)
    Parameters
    Type Name Description
    ChangeType type

    Type of change.

    System.Byte[] data

    Data for change.

    ChangeContext(ChangeType, Byte[], Int64)

    Initializes a new instance of the ChangeContext class.

    Declaration
    public ChangeContext(ChangeType type, byte[] data, long size)
    Parameters
    Type Name Description
    ChangeType type

    Type of change.

    System.Byte[] data

    Data for change.

    System.Int64 size

    Size of change (how much to delete or replace).

    Properties

    Data

    Gets the data for change (for replace and insert).

    Declaration
    public byte[] Data { get; }
    Property Value
    Type
    System.Byte[]

    Length

    Gets the length of data in source.

    Declaration
    public long Length { get; }
    Property Value
    Type
    System.Int64

    Position

    Gets or sets the position in stream.

    Declaration
    public long Position { get; set; }
    Property Value
    Type
    System.Int64

    Size

    Gets the size of data changed (for delete and replace).

    Declaration
    public long Size { get; }
    Property Value
    Type
    System.Int64

    Type

    Gets the type of change.

    Declaration
    public ChangeType Type { get; }
    Property Value
    Type
    ChangeType

    Methods

    Clone()

    Clones the changed context.

    Declaration
    public ChangeContext Clone()
    Returns
    Type Description
    ChangeContext

    New ChangeContext

    Dispose()

    Releases all resources used by this Controls component.

    Declaration
    public void Dispose()

    Finalize()

    Destructor, calls Dispose.

    Declaration
    protected void Finalize()

    GetData(Int64, Byte[], Int32, Int32)

    Reads data and writes it to array.

    Declaration
    public int GetData(long position, byte[] data, int offset, int count)
    Parameters
    Type Name Description
    System.Int64 position

    Position of data in the source.

    System.Byte[] data

    Array, where data will be written.

    System.Int32 offset

    Offset in array.

    System.Int32 count

    Size of data that have to be read.

    Returns
    Type Description
    System.Int32

    Count of actually read bytes.

    ToString()

    Format of the output string is "type: {0,8} length: {1,6} size: {2,6} position: {3,6}" Mostly for debug purposes.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    String representation.

    Overrides
    System.Object.ToString()

    Explicit Interface Implementations

    ICloneable.Clone()

    Clones Context

    Declaration
    object ICloneable.Clone()
    Returns
    Type Description
    System.Object

    New ChangeContext

    Implements

    IChange
    ISource
    System.ICloneable
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved