BeginItemLayoutArgs class
Represents begin layout event arguments.
//Create a new PDF document.
PdfDocument document = PdfDocument();
//Create a new list.
PdfOrderedList(
text: 'PDF\nXlsIO\nDocIO\nPPT',
font: PdfStandardFont(PdfFontFamily.helvetica, 16,
style: PdfFontStyle.italic),
format: PdfStringFormat(lineSpacing: 20))
//Begin item layout event.
..beginItemLayout = (Object sender, BeginItemLayoutArgs args) {
args.item.text += '_Beginsave';
}
//End item layout event.
..endItemLayout = (Object sender, EndItemLayoutArgs args) {
args.page.graphics.drawRectangle(
brush: PdfBrushes.red,
bounds: const Rect.fromLTWH(400, 400, 100, 100));
}
..draw(
page: document.pages.add(), bounds: const Rect.fromLTWH(20, 20, 0, 0));
//Save the document.
List<int> bytes = await document.save();
//Dispose the document.
document.dispose();
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- item → PdfListItem
-
Gets the item.
no setter
- page → PdfPage
-
Gets the page.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited