Class LayoutViewer
Inheritance
System.Object
LayoutViewer
Assembly: Syncfusion.RichTextBoxAdv.WPF.dll
public abstract class LayoutViewer : ContentControl
Constructors
Initializes the new instance of Layout viewer
Declaration
LayoutViewer(RichTextBoxAdv)
Declaration
public LayoutViewer(RichTextBoxAdv richTextBox)
Parameters
Fields
CurrentPageNumberProperty
Declaration
public static readonly DependencyProperty CurrentPageNumberProperty
Field Value
Type |
System.Windows.DependencyProperty |
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
CurrentPageNumber
Declaration
public int? CurrentPageNumber { get; }
Property Value
Type |
System.Nullable<System.Int32> |
Declaration
public bool IsReadOnly { get; }
Property Value
Declaration
public bool IsSelected { get; }
Property Value
Declaration
public bool IsZoomEnabled { get; }
Property Value
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
Methods
Adds the selection to the page
Declaration
public void AddSelections()
Declaration
public abstract void ArrangeElements()
Declaration
public abstract void BringLineToView(LineInfo line)
Parameters
Declaration
public ParagraphAdv CreateBlock(Inline inline)
Parameters
Type |
Name |
Description |
Inline |
inline |
|
Returns
Declaration
public bool GetIsStyleChanged()
Returns
Returns the next position in the document
Declaration
public TextPosition GetNextPosition()
Returns
Returns the previous position in the document
Declaration
public TextPosition GetPreviousPosition()
Returns
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
Measures the child elements
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type |
Name |
Description |
System.Windows.Size |
availableSize |
|
Returns
MoveToPosition(TextPosition)
Moves the cursor to the specified position
Declaration
public void MoveToPosition(TextPosition pos)
Parameters
Declaration
protected override void OnLostFocus(RoutedEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.RoutedEventArgs |
e |
|
Declaration
public void PrintDocument()
Removes the selection from each page
Declaration
public void RemoveSelections()
Declaration
public void ResetZooming()
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
Declaration
public abstract void UpdateHorizontalScrollBar()
Declaration
public abstract void UpdateVerticalScrollBar()