[]
        
(Showing Draft Content)

FarPoint.Win.ComplexBorderSide.-ctor

ComplexBorderSide Constructor

ComplexBorderSide()

Creates one side of a four-sided, complex border with default color SystemColors.WindowFrame, default width of 1, default dash style of Solid, and empty dash pattern and compound array.

Declaration
public ComplexBorderSide()
Public Sub New()

ComplexBorderSide(ComplexBorderSideStyle)

Creates one side of a four-sided, complex border with settings equivalent to the specified side style.

Declaration
public ComplexBorderSide(ComplexBorderSideStyle sideStyle)
Public Sub New(sideStyle As ComplexBorderSideStyle)
Parameters
Type Name Description
ComplexBorderSideStyle sideStyle

Border style for one side

ComplexBorderSide(ComplexBorderSideStyle, Color)

Creates one side of a four-sided, complex border with the specified style and color.

Declaration
public ComplexBorderSide(ComplexBorderSideStyle sideStyle, Color sideColor)
Public Sub New(sideStyle As ComplexBorderSideStyle, sideColor As Color)
Parameters
Type Name Description
ComplexBorderSideStyle sideStyle

Style of the border side

Color sideColor

Color of the border side

ComplexBorderSide(Color)

Creates one side of a four-sided, complex border with the specified color.

Declaration
public ComplexBorderSide(Color color)
Public Sub New(color As Color)
Parameters
Type Name Description
Color color

Color for the border side

ComplexBorderSide(Color, int)

Creates one side of a four-sided, complex border with the specified color and width.

Declaration
public ComplexBorderSide(Color color, int width)
Public Sub New(color As Color, width As Integer)
Parameters
Type Name Description
Color color

Color for this side of the border

int width

Width of this side of the border, in pixels

ComplexBorderSide(Color, int, DashStyle)

Creates one side of a four-sided, complex border with the specified color, width, and dash style.

Declaration
public ComplexBorderSide(Color color, int width, DashStyle dashStyle)
Public Sub New(color As Color, width As Integer, dashStyle As DashStyle)
Parameters
Type Name Description
Color color

Color for this side of the border

int width

Width of this side of the border, in pixels

DashStyle dashStyle

Style of dashed line for this side of the border; a setting of the .NET Framework's DashStyle enumeration

ComplexBorderSide(Color, int, DashStyle, float[], float[])

Creates one side of a four-sided, complex border with the specified color, width, dash style, dash pattern, and compound array.

Declaration
public ComplexBorderSide(Color color, int width, DashStyle dashStyle, float[] dashPattern, float[] compoundArray)
Public Sub New(color As Color, width As Integer, dashStyle As DashStyle, dashPattern As Single(), compoundArray As Single())
Parameters
Type Name Description
Color color

Color for this side of the border

int width

Width of this side of the border, in pixels

DashStyle dashStyle

Style of dashed line for this side of the border; a setting of the DashStyle enumeration of the Microsoft .NET Framework

float[] dashPattern

Pattern of dashes for this side of the border

float[] compoundArray

Array of values that specify a compound line made up of parallel lines and spaces

ComplexBorderSide(bool, Color, int, DashStyle, float[], float[])

Creates one side of a four-sided, complex border with the specified color, width, dash style, dash pattern and compound array, and whether to draw the side.

Declaration
public ComplexBorderSide(bool draw, Color color, int width, DashStyle dashStyle, float[] dashPattern, float[] compoundArray)
Public Sub New(draw As Boolean, color As Color, width As Integer, dashStyle As DashStyle, dashPattern As Single(), compoundArray As Single())
Parameters
Type Name Description
bool draw

Whether to draw that size of the border

Color color

Color for this side of the border

int width

Width of this side of the border, in pixels

DashStyle dashStyle

Style of dashed line for this side of the border; a setting of the DashStyle enumeration of the Microsoft .NET Framework

float[] dashPattern

Pattern of dashes for this side of the border

float[] compoundArray

Array of values that specify a compound line made up of parallel lines and spaces. The elements in the array must be in increasing order, not less than 0, and not greater than 1. The number of elements in the array must be even.

Exceptions
Type Condition
ArgumentException

Specified dash pattern not valid; must be positive value

ArgumentException

Specified compound array values not valid; must be between 0 and 1

ComplexBorderSide(SerializationInfo, StreamingContext)

Creates a new complex border side object from serialization.

Declaration
protected ComplexBorderSide(SerializationInfo info, StreamingContext context)
Protected Sub New(info As SerializationInfo, context As StreamingContext)
Parameters
Type Name Description
SerializationInfo info

Object that holds the serialized object data

StreamingContext context

Contexual information about the source or destination of the serialization