captionType property

PdfLineCaptionType get captionType

Gets the caption type of the annotation.

Implementation

PdfLineCaptionType get captionType =>
    PdfAnnotationHelper.getHelper(this).isLoadedAnnotation
        ? _helper._obtainCaptionType()
        : _captionType;
set captionType (PdfLineCaptionType value)

Sets the caption type of the annotation.

Implementation

set captionType(PdfLineCaptionType value) {
  final PdfAnnotationHelper helper = PdfAnnotationHelper.getHelper(this);
  if (!helper.isLoadedAnnotation) {
    _captionType = value;
  } else {
    helper.dictionary!.setProperty(
        PdfDictionaryProperties.cp,
        PdfName(helper.getEnumName(
            _helper._getCaptionType(helper.getEnumName(value.toString())))));
  }
}