PdfRenderer.Page.AddPageAnnotation(PdfAnnotation) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將所給註解加入頁面。
[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實例。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。