Table of Contents

Class PrintControl

Namespace
SharpDX.Direct2D1
Assembly
SharpDX.Direct2D1.dll
[Guid("2c1d867d-c290-41c8-ae7e-34a98702e9a5")]
public class PrintControl : ComObject
Inheritance
PrintControl

Constructors

PrintControl(Device, ImagingFactory, ComObject)

Initializes a new instance of the PrintControl class.

public PrintControl(Device device, ImagingFactory wicFactory, ComObject documentTarget)

Parameters

device Device

The device.

wicFactory ImagingFactory

The WIC factory.

documentTarget ComObject

The document target.

PrintControl(Device, ImagingFactory, ComObject, PrintControlProperties)

public PrintControl(Device device, ImagingFactory wicFactory, ComObject documentTarget, PrintControlProperties rintControlPropertiesRef)

Parameters

device Device
wicFactory ImagingFactory
documentTarget ComObject
rintControlPropertiesRef PrintControlProperties

PrintControl(nint)

public PrintControl(nint nativePtr)

Parameters

nativePtr nint

Methods

AddPage(CommandList, Size2F)

[This documentation is preliminary and is subject to change.]

Applies to: desktop apps | Metro style apps

TBD

public void AddPage(CommandList commandList, Size2F pageSize)

Parameters

commandList CommandList

No documentation.

pageSize Size2F

No documentation.

AddPage(CommandList, Size2F, IStream, out long, out long)

Converts Direct2D primitives in the passed-in command list into a fixed page representation for use by the print subsystem.

public void AddPage(CommandList commandList, Size2F pageSize, IStream agePrintTicketStreamRef, out long tag1, out long tag2)

Parameters

commandList CommandList

The command list that contains the rendering operations.

pageSize Size2F

The size of the page to add.

agePrintTicketStreamRef IStream

The print ticket stream.

tag1 long

Contains the first label for subsequent drawing operations. This parameter is passed uninitialized. If null is specified, no value is retrieved for this parameter.

tag2 long

Contains the second label for subsequent drawing operations. This parameter is passed uninitialized. If null is specified, no value is retrieved for this parameter.

AddPage(CommandList, Size2F, out long, out long)

[This documentation is preliminary and is subject to change.]

Applies to: desktop apps | Metro style apps

TBD

public void AddPage(CommandList commandList, Size2F pageSize, out long tag1, out long tag2)

Parameters

commandList CommandList

No documentation.

pageSize Size2F

No documentation.

tag1 long

No documentation.

tag2 long

No documentation.

Close()

Passes all remaining resources to the print sub-system, then clean up and close the current print job.

public void Close()

Operators

explicit operator PrintControl(nint)

public static explicit operator PrintControl(nint nativePtr)

Parameters

nativePtr nint

Returns

PrintControl