[]
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.
public ComplexBorderSide()
Public Sub New()
Creates one side of a four-sided, complex border with settings equivalent to the specified side style.
public ComplexBorderSide(ComplexBorderSideStyle sideStyle)
Public Sub New(sideStyle As ComplexBorderSideStyle)
Type | Name | Description |
---|---|---|
ComplexBorderSideStyle | sideStyle | Border style for one side |
Creates one side of a four-sided, complex border with the specified style and color.
public ComplexBorderSide(ComplexBorderSideStyle sideStyle, Color sideColor)
Public Sub New(sideStyle As ComplexBorderSideStyle, sideColor As Color)
Type | Name | Description |
---|---|---|
ComplexBorderSideStyle | sideStyle | Style of the border side |
Color | sideColor | Color of the border side |
Creates one side of a four-sided, complex border with the specified color.
public ComplexBorderSide(Color color)
Public Sub New(color As Color)
Type | Name | Description |
---|---|---|
Color | color | Color for the border side |
Creates one side of a four-sided, complex border with the specified color and width.
public ComplexBorderSide(Color color, int width)
Public Sub New(color As Color, width As Integer)
Type | Name | Description |
---|---|---|
Color | color | Color for this side of the border |
int | width | Width of this side of the border, in pixels |
Creates one side of a four-sided, complex border with the specified color, width, and dash style.
public ComplexBorderSide(Color color, int width, DashStyle dashStyle)
Public Sub New(color As Color, width As Integer, dashStyle As DashStyle)
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 |
Creates one side of a four-sided, complex border with the specified color, width, dash style, dash pattern, and compound array.
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())
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 |
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.
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())
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. |
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 |
Creates a new complex border side object from serialization.
protected ComplexBorderSide(SerializationInfo info, StreamingContext context)
Protected Sub New(info As SerializationInfo, context As StreamingContext)
Type | Name | Description |
---|---|---|
SerializationInfo | info | Object that holds the serialized object data |
StreamingContext | context | Contexual information about the source or destination of the serialization |