# C1.Win.GanttView.Printing.PreviewWrapper

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_GanttView_Printing_PreviewWrapper" data-uid="C1.Win.GanttView.Printing.PreviewWrapper" class="text-break">PreviewWrapper Class
</h1>
  <div class="markdown level0 summary"><p>The <a class="xref" href="C1.Win.GanttView.Printing.PreviewWrapper.html">PreviewWrapper</a> class wraps the print preview dialog functionality.
It allows showing C1.C1Preview.C1PrintDocument content in a C1.Win.RibbonPreview.C1RibbonPreviewDialog,
loaded via reflection from C1.Win.RibbonPreview.4.6.2 assembly.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">PreviewWrapper</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.GanttView.Printing.html">C1.Win.GanttView.Printing</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.GanttView.10.dll</h6>
  <h5 id="C1_Win_GanttView_Printing_PreviewWrapper_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(ExpandableObjectConverter))]
public class PreviewWrapper : IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(ExpandableObjectConverter))&gt;
Public Class PreviewWrapper
    Implements IDisposable</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_GanttView_Printing_PreviewWrapper_C1PrintPreviewDialog" data-uid="C1.Win.GanttView.Printing.PreviewWrapper.C1PrintPreviewDialog">
          <a class="xref" href="C1.Win.GanttView.Printing.PreviewWrapper.C1PrintPreviewDialog.html#C1_Win_GanttView_Printing_PreviewWrapper_C1PrintPreviewDialog">C1PrintPreviewDialog</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the C1.Win.C1Preview.C1PrintPreviewDialog object, used for previewing.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_Printing_PreviewWrapper_Caption" data-uid="C1.Win.GanttView.Printing.PreviewWrapper.Caption">
          <a class="xref" href="C1.Win.GanttView.Printing.PreviewWrapper.Caption.html#C1_Win_GanttView_Printing_PreviewWrapper_Caption">Caption</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the caption of the preview window.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_GanttView_Printing_PreviewWrapper_Dispose" data-uid="C1.Win.GanttView.Printing.PreviewWrapper.Dispose">
          <a class="xref" href="C1.Win.GanttView.Printing.PreviewWrapper.Dispose.html#C1_Win_GanttView_Printing_PreviewWrapper_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Releases all unmanaged resources.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_Printing_PreviewWrapper_Preview_C1_Win_GanttView_Printing_PrintDocumentWrapper_" data-uid="C1.Win.GanttView.Printing.PreviewWrapper.Preview(C1.Win.GanttView.Printing.PrintDocumentWrapper)">
          <a class="xref" href="C1.Win.GanttView.Printing.PreviewWrapper.Preview.html#C1_Win_GanttView_Printing_PreviewWrapper_Preview_C1_Win_GanttView_Printing_PrintDocumentWrapper_">Preview(PrintDocumentWrapper)</a>
        </td>
        <td class="markdown level1 summary"><p>Shows the specified <a class="xref" href="C1.Win.GanttView.Printing.PrintDocumentWrapper.html">PrintDocumentWrapper</a> object in a print preview dialog.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_Printing_PreviewWrapper_Preview_C1_Win_GanttView_Printing_PrintDocumentWrapper_System_Drawing_Printing_PageSettings__" data-uid="C1.Win.GanttView.Printing.PreviewWrapper.Preview(C1.Win.GanttView.Printing.PrintDocumentWrapper,System.Drawing.Printing.PageSettings@)">
          <a class="xref" href="C1.Win.GanttView.Printing.PreviewWrapper.Preview.html#C1_Win_GanttView_Printing_PreviewWrapper_Preview_C1_Win_GanttView_Printing_PrintDocumentWrapper_System_Drawing_Printing_PageSettings__">Preview(PrintDocumentWrapper, ref PageSettings)</a>
        </td>
        <td class="markdown level1 summary"><p>Shows the specified object in a print preview dialog using the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.printing.pagesettings">PageSettings</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_Printing_PreviewWrapper_Preview_System_Object_" data-uid="C1.Win.GanttView.Printing.PreviewWrapper.Preview(System.Object)">
          <a class="xref" href="C1.Win.GanttView.Printing.PreviewWrapper.Preview.html#C1_Win_GanttView_Printing_PreviewWrapper_Preview_System_Object_">Preview(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Shows the specified object in a print preview dialog.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
