static public method LineExtensions.AddLineToRepeatingArea

Brief

Adds a line with specified length, width, stroke style and color to the repeating area and returns the RepeatingAreaBuilder.

Declaration
C#
Gehtsoft.PDFFlow.Builder.RepeatingAreaBuilder  AddLineToRepeatingArea (this Gehtsoft.PDFFlow.Builder.RepeatingAreaBuilder areaBuilder, Gehtsoft.PDFFlow.Models.Shared.XUnit length, Gehtsoft.PDFFlow.Models.Shared.XUnit width, Gehtsoft.PDFFlow.Models.Enumerations.Stroke stroke, Gehtsoft.PDFFlow.Models.Shared.Color color)

Parameters
areaBuilder

This RepeatingAreaBuilder.

length

The line length in points.

width

The line width in points.

stroke

The line stroke style.

color

The line color.
The color can be specified using a system-defined color (for example, Color.Yellow), can be translated from an HTML color code using the method Color.FromHtml, or created from RGBA values using the method Color.FromRgba.
The RGBA red, green, blue, and alpha components must have values between 0.0f (0%, 0 byte value) and 1.0f (100%, 255 byte value). The alpha component is optional, its value is 1.0f by default, which means that the color is fully opaque.

Declared in LineExtensions

back