語言

PdfRenderer.Page.UpdatePageAnnotation(Int32, PdfAnnotation) 方法

定義

更新頁面內容 PdfAnnotation 。

[Android.Runtime.Register("updatePageAnnotation", "(ILandroid/graphics/pdf/component/PdfAnnotation;)Z", "", ApiSince=36)]
public bool UpdatePageAnnotation(int annotationId, Android.Graphics.Pdf.Component.PdfAnnotation annotation);
[<Android.Runtime.Register("updatePageAnnotation", "(ILandroid/graphics/pdf/component/PdfAnnotation;)Z", "", ApiSince=36)>]
member this.UpdatePageAnnotation : int * Android.Graphics.Pdf.Component.PdfAnnotation -> bool

參數

annotationId
Int32

對應註解要更新的 id

annotation
PdfAnnotation

註解以更新

傳回

true表示註解更新,否則為false

屬性

備註

更新頁面內容 PdfAnnotation 。

注意: PdfAnnotationType 所提供的註解必須與被更新的原始註解相同。

PdfRenderer#write 需要呼叫才能在呼叫此方法後取得更新的 PDF 串流。 PdfRenderer.Page 實例可在呼叫 PdfRenderer#write前關閉。

的 android.graphics.pdf.PdfRenderer.Page.updatePageAnnotation(int, android.graphics.pdf.component.PdfAnnotation)Java 檔。

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

適用於