The C1PreviewPane type exposes the following members.

Methods

  Name Description
Public method AddCurrentViewStateToHistory
Creates a new ViewHistoryItem object using the current state of the C1PreviewPane.

The newly created object is then added to the ViewHistory collection. Adding of the new state to history is cancelled if the Document property of the current preview pane is null, or if the specified action should not be saved according to the SavedActions value of the current pane's HistoryOptions.

Adding of the new state to history can also be cancelled in the HistoryItemAdding event.

Public method AddViewStateToHistory
Creates a new ViewHistoryItem object with the specified ViewState.

The newly created object is then added to the ViewHistory collection.

Adding of the new state to history can be cancelled in the HistoryItemAdding event.

Public method BeginInvoke(Delegate)
Executes the specified delegate asynchronously on the thread that the control's underlying handle was created on.
(Inherited from ControlControl.)
Public method BeginInvoke(Delegate, array<Object>[]()[][])
Executes the specified delegate asynchronously with the specified arguments, on the thread that the control's underlying handle was created on.
(Inherited from ControlControl.)
Public method BringToFront
Brings the control to the front of the z-order.
(Inherited from Control.)
Public method ClientToDocument
Converts a point in the current C1PreviewPane's client coordinates, to document coordinates.

Document coordinates are also pixels, but are relative to a specific page's left top corner, and do not depend on the current zoom factor.

For instance, a client point that is over a page's right top corner would yield a point with document coordinates (816,0) on a 96 DPI resolution display for a 8.5 in wide page (816 is 8.5 multiplied by 96), regardless of the current zoom factor or document scroll position in the preview.

Public method Contains
Retrieves a value indicating whether the specified control is a child of the control.
(Inherited from Control.)
Public method CreateControl
Forces the creation of the control, including the creation of the handle and any child controls.
(Inherited from Control.)
Public method CreateGraphics
Creates the Graphics for the control.
(Inherited from Control.)
Public method DoCopySelection
Copies the current selection to clipboard.
Public method DoDragDrop
Begins a drag-and-drop operation.
(Inherited from Control.)
Public method DoEscape
Handles the Escape key (clears selection, resets mouse mode).
Public method DoGoHistoryBack
Goes back in history.
Public method DoGoHistoryForward
Goes forward in history.
Public method DoGoNextPage
Goes to next page.
Public method DoGoPreviousPage
Goes to previous page.
Public method DoScrollBottom
Scrolls to the end of the document.
Public method DoScrollDown
Scrolls down.
Public method DoScrollLeft
Scrolls left.
Public method DoScrollPageDown
Scrolls one page down.
Public method DoScrollPageUp
Scrolls one page up.
Public method DoScrollRight
Scrolls right.
Public method DoScrollTop
Scrolls to the top of the document.
Public method DoScrollUp
Scrolls up.
Public method DoSelectAll
Selects the whole document.
Public method DoZoomIn
Zooms in.
Public method DoZoomOut
Zooms out.
Public method DrawToBitmap
Supports rendering to the specified bitmap.
(Inherited from Control.)
Public method EndInvoke
Retrieves the return value of the asynchronous operation represented by the IAsyncResult passed.
(Inherited from Control.)
Public method FileOpen()()()()
Shows a file open dialog, allows the user to select a C1DX or C1D file, and loads the selected file into the current preview pane. If an exception occurs while loading the file, an error message is displayed, and the method returns false.
Public method FileOpen(String)
Loads the specified file (which must be a valid C1DX, C1D or C1MDX document) into the current preview pane.

If fileName does not exist or is a directory, shows the file open dialog and allows the user to select a file to load. In that case fileName specifies the initial directory for the dialog.

Public method FileSave()()()()
Saves the currently loaded document, allowing the user to select the file name and the output format, using the ExportOptions specified on the current preview pane.
Public method FileSave(String, ExportProvider)
Saves the currently loaded document into the specified fileName. If fileName is null or empty, or if exportProvider is null, shows the file save dialog allowing the user to select the file name and output format.

ExportOptions specified on the current preview pane are used when saving the document.

Public method FindForm
Retrieves the form that the control is on.
(Inherited from Control.)
Public method Focus
Sets input focus to the control.
(Inherited from Control.)
Public method GetChildAtPoint(Point)
Retrieves the child control that is located at the specified coordinates.
(Inherited from ControlControl.)
Public method GetChildAtPoint(Point, GetChildAtPointSkip)
Retrieves the child control that is located at the specified coordinates, specifying whether to ignore child controls of a certain type.
(Inherited from ControlControl.)
Public method GetContainerControl
Returns the next ContainerControl up the control's chain of parent controls.
(Inherited from Control.)
Public method GetNextControl
Retrieves the next control forward or back in the tab order of child controls.
(Inherited from Control.)
Public method GetPageVisibility
Gets the percentage (from 0 to 100) of the area of the specified page that is currently visible in this C1PreviewPane. The returned value is rounded to 2 decimal digits.
Public method GetPreferredSize
Retrieves the size of a rectangular area into which a control can be fitted.
(Inherited from Control.)
Public method Hide
Conceals the control from the user.
(Inherited from Control.)
Public method HistoryBack
Goes back in history.
Public method HistoryForward
Goes forward in history.
Public method Invalidate()()()()
Invalidates the entire surface of the control and causes the control to be redrawn.
(Inherited from ControlControl.)
Public method Invalidate(Region)
Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control.
(Inherited from ControlControl.)
Public method Invalidate(Boolean)
Invalidates a specific region of the control and causes a paint message to be sent to the control. Optionally, invalidates the child controls assigned to the control.
(Inherited from ControlControl.)
Public method Invalidate(Rectangle)
Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control.
(Inherited from ControlControl.)
Public method Invalidate(Region, Boolean)
Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. Optionally, invalidates the child controls assigned to the control.
(Inherited from ControlControl.)
Public method Invalidate(Rectangle, Boolean)
Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. Optionally, invalidates the child controls assigned to the control.
(Inherited from ControlControl.)
Public method Invoke(Delegate)
Executes the specified delegate on the thread that owns the control's underlying window handle.
(Inherited from ControlControl.)
Public method Invoke(Delegate, array<Object>[]()[][])
Executes the specified delegate, on the thread that owns the control's underlying window handle, with the specified list of arguments.
(Inherited from ControlControl.)
Public method LockHistory
Temporarily locks (suspends) adding of new items to ViewHistory. Note a matching call to UnlockHistory(HistorySavedActionsEnum, String) must exist for each call of this method.
Public method OnLongOperation
Raises the LongOperation event on the preview pane.
Public method PerformLayout()()()()
Forces the control to apply layout logic to all its child controls.
(Inherited from ControlControl.)
Public method PerformLayout(Control, String)
Forces the control to apply layout logic to all its child controls.
(Inherited from ControlControl.)
Public method PointToClient
Computes the location of the specified screen point into client coordinates.
(Inherited from Control.)
Public method PointToScreen
Computes the location of the specified client point into screen coordinates.
(Inherited from Control.)
Public method PreProcessControlMessage
Preprocesses keyboard or input messages within the message loop before they are dispatched.
(Inherited from Control.)
Public method PreProcessMessage
Preprocesses keyboard or input messages within the message loop before they are dispatched.
(Inherited from Control.)
Public method RectangleToClient
Computes the size and location of the specified screen rectangle in client coordinates.
(Inherited from Control.)
Public method RectangleToScreen
Computes the size and location of the specified client rectangle in screen coordinates.
(Inherited from Control.)
Public method Refresh
Forces the control to invalidate its client area and immediately redraw itself and any child controls.
(Inherited from Control.)
Public method ResetBackColor
Resets the BackColor property to the default value.
(Overrides Control..::..ResetBackColor()()()().)
Public method ResetPagesFillColor
Resets the PagesFillColor to the default value.
Public method ResetPagesPadding
Resets the PagesPadding to the default value.
Public method ResetPagesPaddingSmall
Resets the PagesPaddingSmall to the default value.
Public method ResetSidesPadding
Resets the SidesPadding to the default value.
Public method ResetText
Resets the Text property to its default value.
(Inherited from Control.)
Public method ResetZoomSteps
Resets the ZoomSteps property to the default value.
Public method ResumeLayout()()()()
Resumes usual layout logic.
(Inherited from ControlControl.)
Public method ResumeLayout(Boolean)
Resumes usual layout logic, optionally forcing an immediate layout of pending layout requests.
(Inherited from ControlControl.)
Public method ScrollControlIntoView
Scrolls the specified child control into view on an auto-scroll enabled control.
(Inherited from ScrollableControl.)
Public method Select
Activates the control.
(Inherited from Control.)
Public method SelectAll
Selects all text in the document currently loaded into this C1PreviewPane.
Public method SelectNextControl
Activates the next control.
(Inherited from Control.)
Public method SendToBack
Sends the control to the back of the z-order.
(Inherited from Control.)
Public method SetAutoScrollMargin
Sets the size of the auto-scroll margins.
(Inherited from ScrollableControl.)
Public method SetBounds(Int32, Int32, Int32, Int32)
Sets the bounds of the control to the specified location and size.
(Inherited from ControlControl.)
Public method SetBounds(Int32, Int32, Int32, Int32, BoundsSpecified)
Sets the specified bounds of the control to the specified location and size.
(Inherited from ControlControl.)
Public method SetFocus
Sets the input focus to the specified RenderInputFragment object. This method should be used only if the preview currently shows a C1PrintDocument.
Public method Show
Displays the control to the user.
(Inherited from Control.)
Public method ShowErrorMessage
Shows a dialog box with the exception message.
Public method SuspendLayout
Temporarily suspends the layout logic for the control.
(Inherited from Control.)
Public method ToString
Returns a string representation for this control.
(Inherited from Panel.)
Public method UnlockHistory
Unlocks (resumes) adding of new items to ViewHistory temporarily locked by a previous call to LockHistory()()()().
Public method Update
Causes the control to redraw the invalidated regions within its client area.
(Inherited from Control.)
Public method UpdatePreview
Forces the preview pane to update the preview.

See Also