Class ReflowViewModel
Inheritance
System.Object
ReflowViewModel
Assembly: pdftron.PDF.Tools.dll
public class ReflowViewModel : ViewModelBase
Constructors
Declaration
Declaration
public ReflowViewModel(PDFDoc doc)
Parameters
Type |
Name |
Description |
PDFDoc |
doc |
|
Fields
Declaration
public const string KEYDOWN_STRING = null
Field Value
Type |
Description |
System.String |
|
Declaration
public const string PARAGRAPH_STYLE_STRING = null
Field Value
Type |
Description |
System.String |
|
Declaration
public const string TAP_STRING = null
Field Value
Type |
Description |
System.String |
|
Properties
CurrentPage
Declaration
public ReflowItem CurrentPage { get; }
Property Value
CurrentPageNumber
Declaration
public int CurrentPageNumber { get; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public PDFDoc Doc { get; set; }
Property Value
GetReflowProgressText
Declaration
public string GetReflowProgressText { get; }
Property Value
Type |
Description |
System.String |
|
HasReflowedContent
Declaration
public bool HasReflowedContent { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsNextButtonEnabled { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsPrevButtonEnabled { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public RelayCommand NavigationCommand { get; }
Property Value
PostProcessingBlackColor
Declaration
public Color PostProcessingBlackColor { get; }
Property Value
Type |
Description |
Windows.UI.Color |
|
PostProcessingMode
Declaration
public PDFRasterizerColorPostProcessMode PostProcessingMode { get; }
Property Value
Type |
Description |
PDFRasterizerColorPostProcessMode |
|
PostProcessingWhiteColor
Declaration
public Color PostProcessingWhiteColor { get; }
Property Value
Type |
Description |
Windows.UI.Color |
|
PostProcessPDFView
Declaration
public PDFViewCtrl PostProcessPDFView { get; }
Property Value
Type |
Description |
PDFViewCtrl |
|
ReflowedContent
Declaration
public string ReflowedContent { get; }
Property Value
Type |
Description |
System.String |
|
ReflowedPages
Declaration
public Dictionary<int, ReflowItem> ReflowedPages { get; }
Property Value
Type |
Description |
Dictionary<System.Int32, ReflowItem> |
|
TotalPageNumbers
Declaration
public int TotalPageNumbers { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
Will try to navigate to an internal link. Returns true if successful
Declaration
public bool NavigateInternalLink(string link)
Parameters
Type |
Name |
Description |
System.String |
link |
|
Returns
Type |
Description |
System.Boolean |
true if link was a link and it could sucessfully navigate to it
|
SetColorPostProcessingMode(PDFRasterizerColorPostProcessMode, Color, Color)
Declaration
public void SetColorPostProcessingMode(PDFRasterizerColorPostProcessMode mode, Color whiteColor, Color blackColor)
Parameters
Type |
Name |
Description |
PDFRasterizerColorPostProcessMode |
mode |
|
Windows.UI.Color |
whiteColor |
|
Windows.UI.Color |
blackColor |
|
SetPageNumber(Int32)
Sets the current page to pageNumber
Declaration
public bool SetPageNumber(int pageNumber)
Parameters
Type |
Name |
Description |
System.Int32 |
pageNumber |
the page number to navigate to
|
Returns
Type |
Description |
System.Boolean |
True if the pageNumber is a valid page within range
|
Declaration
UpdatePageNumberProperties()
Declaration
public void UpdatePageNumberProperties()
Events
PageChanged
Declaration
public event ReflowViewModel.PageChangedDelegate PageChanged
Event Type
PageChangeIntended
Gets raised when the ReflowViewModel is about to change pages through a link being clicked
Handle this and return true to make the ReflowViewModel abort.
Declaration
public event ReflowViewModel.PageChangeIntendedDelegate PageChangeIntended
Event Type