HtmlPrintDocumentSource
HtmlPrintDocumentSource
HtmlPrintDocumentSource
HtmlPrintDocumentSource
HtmlPrintDocumentSource
Class
Definition
Manages the document source for app printing.
public : sealed class HtmlPrintDocumentSource : IClosable, IPrintDocumentSource
struct winrt::Windows::UI::WebUI::HtmlPrintDocumentSource : IClosable, IPrintDocumentSource
public sealed class HtmlPrintDocumentSource : IDisposable, IPrintDocumentSource
Public NotInheritable Class HtmlPrintDocumentSource Implements IDisposable, IPrintDocumentSource
// This class does not provide a public constructor.
- Attributes
Windows 10 requirements
Device family |
Windows 10 (introduced v10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
To get an instance of HtmlPrintDocumentSource, call the getHtmlPrintDocumentSourceMSApp method.
Properties
BottomMargin BottomMargin BottomMargin BottomMargin BottomMargin |
Gets and sets the bottom margin of the document source. |
Content Content Content Content Content |
Gets and sets the content of the document source to print. |
EnableHeaderFooter EnableHeaderFooter EnableHeaderFooter EnableHeaderFooter EnableHeaderFooter |
Gets and sets a value that controls whether header and footer are enabled in the document source. |
LeftMargin LeftMargin LeftMargin LeftMargin LeftMargin |
Gets and sets the left margin of the document source. |
PageRange PageRange PageRange PageRange PageRange |
Gets the range of pages that prints. |
PercentScale PercentScale PercentScale PercentScale PercentScale |
Gets and sets the size of the document source by percentage. |
RightMargin RightMargin RightMargin RightMargin RightMargin |
Gets and sets the right margin of the document source. |
ShrinkToFit ShrinkToFit ShrinkToFit ShrinkToFit ShrinkToFit |
Gets and sets a value that controls whether content shrinks to fit the document source. |
TopMargin TopMargin TopMargin TopMargin TopMargin |
Gets and sets the top margin of the document source. |
Methods
Close() Close() Close() Close() Close() |
Performs app-defined tasks that are associated with freeing, releasing, or resetting resources that were allocated for the document source. |
Dispose() Dispose() Dispose() Dispose() Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
TrySetPageRange(String) TrySetPageRange(String) TrySetPageRange(String) TrySetPageRange(String) TrySetPageRange(String) |
Tries to set the page range of the document source. |
See also
Feedback
Loading feedback...