public method BorderBuilder.SetColor

Brief

Sets the color for each border side.

Declaration
C#
Gehtsoft.PDFFlow.Builder.BorderBuilder  SetColor (Gehtsoft.PDFFlow.Models.Shared.Color left, Gehtsoft.PDFFlow.Models.Shared.Color top, Gehtsoft.PDFFlow.Models.Shared.Color right, Gehtsoft.PDFFlow.Models.Shared.Color bottom)

Parameters
left

The color to apply to the left border side.

top

The color to apply to the top border side.

right

The color to apply to the right border side.

bottom

The color to apply to the bottom border side.

Details

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 BorderBuilder

back