menu

WinForms

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

    Show / Hide Table of Contents

    Class DLSViewer

    Represents a DLS veiwer that can be used to view DLS Documents.

    Inheritance
    System.Object
    DLSViewer
    Namespace: Syncfusion.DLS.Rendering
    Assembly: Syncfusion.DLS.Base.dll
    Syntax
    public class DLSViewer : ScrollableControl

    Constructors

    DLSViewer()

    Declaration
    public DLSViewer()

    Properties

    CurrentPageIndex

    Declaration
    public int CurrentPageIndex { get; set; }
    Property Value
    Type
    System.Int32

    Document

    Declaration
    public IDocument Document { get; set; }
    Property Value
    Type
    IDocument

    PageCount

    Declaration
    public int PageCount { get; }
    Property Value
    Type
    System.Int32

    PrintDocument

    Declaration
    public PrintDocument PrintDocument { get; }
    Property Value
    Type
    System.Drawing.Printing.PrintDocument

    Methods

    AttachOtherGraphics(DLSGraphics)

    Declaration
    public void AttachOtherGraphics(DLSGraphics dlsGraphics)
    Parameters
    Type Name Description
    DLSGraphics dlsGraphics

    Dispose(Boolean)

    Clean up any resources being used.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    OnPaint(PaintEventArgs)

    Declaration
    protected override void OnPaint(PaintEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.PaintEventArgs e

    OnPrintPage(Object, PrintPageEventArgs)

    Declaration
    protected virtual void OnPrintPage(object sender, PrintPageEventArgs e)
    Parameters
    Type Name Description
    System.Object sender
    System.Drawing.Printing.PrintPageEventArgs e

    Print()

    Declaration
    public void Print()

    SetDPIFromGraphics(Graphics)

    Declaration
    public void SetDPIFromGraphics(Graphics g)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved