語言

PdfRenderer.Page.AddPageAnnotation(PdfAnnotation) 方法

定義

將所給註解加入頁面。

[Android.Runtime.Register("addPageAnnotation", "(Landroid/graphics/pdf/component/PdfAnnotation;)I", "", ApiSince=36)]
public int AddPageAnnotation(Android.Graphics.Pdf.Component.PdfAnnotation annotation);
[<Android.Runtime.Register("addPageAnnotation", "(Landroid/graphics/pdf/component/PdfAnnotation;)I", "", ApiSince=36)>]
member this.AddPageAnnotation : Android.Graphics.Pdf.Component.PdfAnnotation -> int

參數

annotation
PdfAnnotation

PdfAnnotation要加的物件

傳回

新增註解的非負 ID。

屬性

例外狀況

註解無法新增。

備註

將所給註解加入頁面。 註解應為支援型別。 請參見 PdfAnnotationType 支援的類型

Write(ParcelFileDescriptor, Boolean) 需要被呼叫才能在呼叫此方法後取得更新後的 PDF 串流。 在呼叫Write(ParcelFileDescriptor, Boolean)之前,可以先關閉一個PdfRenderer.Page實例。

Java 文件 android.graphics.pdf.PdfRenderer.Page.addPageAnnotation(android.graphics.pdf.component.PdfAnnotation)。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於