Gets or sets the amount of padding between pages in the preview used when margins are hidden.

Namespace:  C1.Win.C1Preview
Assembly:  C1.Win.C1Report.2 (in C1.Win.C1Report.2.dll)

Syntax

C#
public Size PagesPaddingSmall { get; set; }
Visual Basic
Public Property PagesPaddingSmall As Size
	Get
	Set

Examples

The following example uses the PagesPaddingSmall property to set the padding between pages with hidden margins to 0, so that no gap is visible:

Copy CodeVisual Basic
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) 
    C1PrintPreviewControl1.PreviewPane.ZoomFactor = 1
    C1PrintPreviewControl1.PreviewPane.HideMarginsState = C1.Win.C1Preview.HideMarginsFlags.All
    ' Do not allow the user to show margins.
    C1PrintPreviewControl1.PreviewPane.HideMargins = C1.Win.C1Preview.HideMarginsFlags.None 
    ' Set padding between pages with hidden margins to 0, so that no gap is visible.
    C1PrintPreviewControl1.PreviewPane.PagesPaddingSmall = New Size(0, 0)
    ' Set the zoom mode.
    C1PrintPreviewControl1.PreviewPane.ZoomMode = C1.Win.C1Preview.ZoomModeEnum.PageWidth 
    ' Make the document.
    MakeDoc1(c1PrintDocument1) 
    C1PrintDocument1.Reflow() 
End Sub
Copy CodeC#
private void Form1_Load(object sender, EventArgs e)
{
    c1PrintPreviewControl1.PreviewPane.ZoomFactor = 1;
    c1PrintPreviewControl1.PreviewPane.HideMarginsState = C1.Win.C1Preview.HideMarginsFlags.All;
    // Do not allow the user to show margins.
    c1PrintPreviewControl1.PreviewPane.HideMargins = C1.Win.C1Preview.HideMarginsFlags.None;
    // Set padding between pages with hidden margins to 0, so that no gap is visible.
    c1PrintPreviewControl1.PreviewPane.PagesPaddingSmall = new Size(0, 0);
    // Set the zoom mode.
    c1PrintPreviewControl1.PreviewPane.ZoomMode = C1.Win.C1Preview.ZoomModeEnum.PageWidth;
    // Make the document.
    MakeDoc1(c1PrintDocument1);
    c1PrintDocument1.Reflow();
}

See Also