HtmlPrintDocumentSource class

Applies to Windows only

Manages the document source for app printing.

Syntax


/* For information about creating or accessing this object, see Remarks. */

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06030000)]

Members

The HtmlPrintDocumentSource class has these types of members:

Methods

The HtmlPrintDocumentSource class has these methods.

MethodDescription
Close Performs app-defined tasks that are associated with freeing, releasing, or resetting resources that were allocated for the document source.
TrySetPageRange Tries to set the page range of the document source.

 

Properties

The HtmlPrintDocumentSource class has these properties.

PropertyAccess typeDescription

BottomMargin

Read/writeGets and sets the bottom margin of the document source.

Content

Read/writeGets and sets the content of the document source to print.

EnableHeaderFooter

Read/writeGets and sets a value that controls whether header and footer are enabled in the document source.

LeftMargin

Read/writeGets and sets the left margin of the document source.

PageRange

Read-onlyGets the range of pages that prints.

PercentScale

Read/writeGets and sets the size of the document source by percentage.

RightMargin

Read/writeGets and sets the right margin of the document source.

ShrinkToFit

Read/writeGets and sets a value that controls whether content shrinks to fit the document source.

TopMargin

Read/writeGets and sets the top margin of the document source.

 

Remarks

To get an instance of HtmlPrintDocumentSource, call the getHtmlPrintDocumentSource MSApp method.

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Minimum supported phone

None supported

Namespace

Windows.UI.WebUI

Metadata

Windows.winmd

See also

Object
IPrintDocumentSource
IClosable

 

 

Show:
© 2014 Microsoft