Spread Windows Forms 11.0 Product Documentation
CompoundArray Property
Example 


FarPoint.Win Assembly > FarPoint.Win Namespace > ComplexBorderSide Class : CompoundArray Property
Gets array values that specify a compound line made up of parallel lines and spaces of this side of the complex border.
Syntax
'Declaration
 
Public ReadOnly Property CompoundArray As Single()
'Usage
 
Dim instance As ComplexBorderSide
Dim value() As Single
 
value = instance.CompoundArray
public float[] CompoundArray {get;}

Property Value

Array of floating point values specifying the lines in the border
Remarks

A complex border can have multiple lines. This is done by drawing a compound line with a pen that has the pattern defined in the compoundArray. The array of values specifies the starting point, the start of each line and the start of each spacing as a percentage of the total width of the pen.

For examples that show a complex border, refer to Creating a Complex Border with Multiple Lines.

For more details on the pen object, refer to the Compound Array for the Pen object in the Microsoft .NET Framework Reference documentation.

Example
This example returns the compound array of lines for the side.
FarPoint.Win.ComplexBorderSide side = new FarPoint.Win.ComplexBorderSide(true, Color.Red, (int)1.5, System.Drawing.Drawing2D.DashStyle.Solid, new float[] {0.33F, 0.5F, 0.66F, 1.0F}, new float[] {0.33F, 0.5F, 0.66F, 1.0F});
FarPoint.Win.ComplexBorder bord = new FarPoint.Win.ComplexBorder(side);
float[] ca = side.CompoundArray;
MessageBox.Show("The first value in the array is " + ca[0].ToString() + ".");
Dim side As New FarPoint.Win.ComplexBorderSide(True, Color.Red, 1.5, Drawing2D.DashStyle.Solid, New Single() {0.33F, 0.5F, 0.66F, 1.0F}, New Single() {0.33F, 0.5F, 0.66F, 1.0F})
Dim bord As New FarPoint.Win.ComplexBorder(side)
Dim ca As Single() = side.CompoundArray
MessageBox.Show("The first value in the array is " + ca(0).ToString() + ".")
See Also

Reference

ComplexBorderSide Class
ComplexBorderSide Members
Creating a Complex Border with Multiple Lines