beginLineStyle property
PdfLineEndingStyle
get
beginLineStyle
Gets the begin line style of the annotation.
Implementation
PdfLineEndingStyle get beginLineStyle =>
PdfAnnotationHelper.getHelper(this).isLoadedAnnotation
? _helper._getLineStyle(0)
: _beginLineStyle;
set
beginLineStyle
(PdfLineEndingStyle value)
Sets the end line style of the annotation.
Implementation
set beginLineStyle(PdfLineEndingStyle value) {
final PdfAnnotationHelper helper = PdfAnnotationHelper.getHelper(this);
if (!helper.isLoadedAnnotation) {
_beginLineStyle = value;
} else {
PdfArray? lineStyle = _helper._obtainLineStyle();
if (lineStyle == null) {
lineStyle = PdfArray();
} else {
lineStyle.elements.removeAt(0);
}
lineStyle.insert(
0,
PdfName(helper.getEnumName(
_helper._getLineStyle(helper.getEnumName(value.toString())))));
helper.dictionary!.setProperty(PdfDictionaryProperties.le, lineStyle);
}
}