menu

WinForms

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

    Show / Hide Table of Contents

    Class DataWindow

    Represents a class that provides source of data for output stream.

    Inheritance
    System.Object
    DataWindow
    Implements
    IDataWindow
    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 DataWindow : IDataWindow, ICloneable, IDisposable

    Constructors

    DataWindow(ISource)

    Initializes a new instance of the DataWindow class.

    Declaration
    public DataWindow(ISource source)
    Parameters
    Type Name Description
    ISource source

    Source of data for window.

    DataWindow(ISource, Int64, Int64)

    Initializes a new instance of the DataWindow class.

    Declaration
    public DataWindow(ISource source, long start, long size)
    Parameters
    Type Name Description
    ISource source

    Source of data for window.

    System.Int64 start

    Start position of the window's data in source.

    System.Int64 size

    Size of the window's data in source.

    Properties

    IsDisposed

    Gets a value indicating whether the stream is disposed or not.

    Declaration
    public bool IsDisposed { get; }
    Property Value
    Type
    System.Boolean

    Position

    Gets or sets the position of window in output stream.

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

    Size

    Gets or sets the size of window's data.

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

    Source

    Gets the source for reading data of this stream. More than one windows can use this source.

    Declaration
    public ISource Source { get; }
    Property Value
    Type
    ISource

    Start

    Gets or sets the index of first byte of window's data in Source.

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

    Methods

    Clone()

    Clones DataWindow

    Declaration
    public DataWindow Clone()
    Returns
    Type Description
    DataWindow

    New DataWindow

    Dispose()

    Releases all resources used by data window.

    Declaration
    public void Dispose()

    Finalize()

    Destoroy Class

    Declaration
    protected void Finalize()

    ToString()

    Represents a data window in format "source: xxx start: xxx position: xxx". Mostly needed for debug purposes.

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

    Explicit Interface Implementations

    ICloneable.Clone()

    Clones DataWindow

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

    New DataWindow

    Implements

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