PdfRenderer.Page.AddPageAnnotation(PdfAnnotation) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Ajoute l’annotation donnée à la page.
[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
Paramètres
- annotation
- PdfAnnotation
objet PdfAnnotation à ajouter
Retours
ID non négatif de l’annotation ajoutée.
- Attributs
Exceptions
Impossible d’ajouter l’annotation.
Remarques
Ajoute l’annotation donnée à la page. L’annotation doit être de type pris en charge. Consultez PdfAnnotationType les types pris en charge
Write(ParcelFileDescriptor, Boolean) doit être appelé pour obtenir le flux PDF mis à jour après avoir appelé cette méthode. Une PdfRenderer.Page instance peut être fermée avant d’appeler Write(ParcelFileDescriptor, Boolean).
Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.