语言

PrintedPdfDocument 构造函数

定义

重载

名称 说明
PrintedPdfDocument(Context, PrintAttributes)

创建新文档。

PrintedPdfDocument(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

PrintedPdfDocument(Context, PrintAttributes)

创建新文档。

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/print/PrintAttributes;)V", "")]
public PrintedPdfDocument(Android.Content.Context context, Android.Print.PrintAttributes attributes);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/print/PrintAttributes;)V", "")>]
new Android.Print.Pdf.PrintedPdfDocument : Android.Content.Context * Android.Print.PrintAttributes -> Android.Print.Pdf.PrintedPdfDocument

参数

context
Context

用于访问资源的上下文实例。

attributes
PrintAttributes

打印属性。

特性

注解

创建新文档。

注意: 调用 #close()完成后,必须关闭文档。

Java文档android.print.pdf.PrintedPdfDocument.PrintedPdfDocument(android.content.Context, android.print.PrintAttributes)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

PrintedPdfDocument(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

protected PrintedPdfDocument(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Print.Pdf.PrintedPdfDocument : nativeint * Android.Runtime.JniHandleOwnership -> Android.Print.Pdf.PrintedPdfDocument

参数

javaReference
IntPtr

nativeint

IntPtr一个包含Java本机接口 (JNI) 对象引用。

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 javaReference

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于