menu

WinForms

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

    Show / Hide Table of Contents

    Class LayoutViewer

    Inheritance
    System.Object
    LayoutViewer
    FlowLayoutViewer
    PageLayoutViewer
    Namespace: Syncfusion.Windows.Tools.Controls
    Assembly: Syncfusion.RichTextBoxAdv.WPF.dll
    Syntax
    public abstract class LayoutViewer : ContentControl

    Constructors

    LayoutViewer()

    Initializes the new instance of Layout viewer

    Declaration
    public LayoutViewer()

    LayoutViewer(RichTextBoxAdv)

    Declaration
    public LayoutViewer(RichTextBoxAdv richTextBox)
    Parameters
    Type Name Description
    RichTextBoxAdv richTextBox

    Fields

    CurrentPageNumberProperty

    Declaration
    public static readonly DependencyProperty CurrentPageNumberProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    scaleTransform

    Declaration
    protected ScaleTransform scaleTransform
    Field Value
    Type
    System.Windows.Media.ScaleTransform

    Properties

    CurrentPage

    Gets the CurrentPage where Cursor available.

    Declaration
    public PageAdv CurrentPage { get; }
    Property Value
    Type
    PageAdv

    CurrentPageNumber

    Declaration
    public int? CurrentPageNumber { get; }
    Property Value
    Type
    System.Nullable<System.Int32>

    IsReadOnly

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

    IsSelected

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

    IsZoomEnabled

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

    Pages

    Gets the No of Pages in the LayoutViewer.

    Declaration
    public List<PageAdv> Pages { get; }
    Property Value
    Type
    System.Collections.Generic.List<PageAdv>

    TextPosition

    Gets or Sets the TextPosition

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

    Methods

    AddSelections()

    Adds the selection to the page

    Declaration
    public void AddSelections()

    ArrangeElements()

    Arranges the element box

    Declaration
    public abstract void ArrangeElements()

    BringLineToView(LineInfo)

    Declaration
    public abstract void BringLineToView(LineInfo line)
    Parameters
    Type Name Description
    LineInfo line

    CreateBlock(Inline)

    Declaration
    public ParagraphAdv CreateBlock(Inline inline)
    Parameters
    Type Name Description
    Inline inline
    Returns
    Type
    ParagraphAdv

    GetIsStyleChanged()

    Declaration
    public bool GetIsStyleChanged()
    Returns
    Type
    System.Boolean

    GetNextPosition()

    Returns the next position in the document

    Declaration
    public TextPosition GetNextPosition()
    Returns
    Type
    TextPosition

    GetPreviousPosition()

    Returns the previous position in the document

    Declaration
    public TextPosition GetPreviousPosition()
    Returns
    Type
    TextPosition

    GetText(String, Double, ElementBox)

    Declaration
    public string GetText(string Text, double width, ElementBox box)
    Parameters
    Type Name Description
    System.String Text
    System.Double width
    ElementBox box
    Returns
    Type
    System.String

    MeasureOverride(Size)

    Measures the child elements

    Declaration
    protected override Size MeasureOverride(Size availableSize)
    Parameters
    Type Name Description
    System.Windows.Size availableSize
    Returns
    Type
    System.Windows.Size

    MoveToPosition(TextPosition)

    Moves the cursor to the specified position

    Declaration
    public void MoveToPosition(TextPosition pos)
    Parameters
    Type Name Description
    TextPosition pos

    OnLostFocus(RoutedEventArgs)

    Declaration
    protected override void OnLostFocus(RoutedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.RoutedEventArgs e

    PrintDocument()

    Declaration
    public void PrintDocument()

    RemoveSelections()

    Removes the selection from each page

    Declaration
    public void RemoveSelections()

    ResetZooming()

    Declaration
    public void ResetZooming()

    SetPreviousBlocks()

    Declaration
    public abstract void SetPreviousBlocks()

    SetVisibleLinesToPage()

    Declaration
    public abstract void SetVisibleLinesToPage()

    SkipPage(Int32)

    Declaration
    public PageAdv SkipPage(int nextPageindex)
    Parameters
    Type Name Description
    System.Int32 nextPageindex
    Returns
    Type
    PageAdv

    UpdateHorizontalScrollBar()

    Declaration
    public abstract void UpdateHorizontalScrollBar()

    UpdateVerticalScrollBar()

    Declaration
    public abstract void UpdateVerticalScrollBar()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved