Spread Windows Forms 6.0 Product Documentation
DashPattern Property
See Also  Example Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > ComplexBorderSide Class : DashPattern Property


Glossary Item Box

Gets the dash pattern array of this side of the complex border.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property DashPattern As Single()
Visual Basic (Usage)Copy Code
Dim instance As ComplexBorderSide
Dim value() As Single
 
value = instance.DashPattern
C# 
public float[] DashPattern {get;}

Property Value

Array of floating-point values representing the dash pattern

Example

This example returns the dash pattern for the side.
C#Copy Code
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[] dp = side.DashPattern;
MessageBox.Show("The first value in the array is " + dp[0].ToString() + ".");
Visual BasicCopy Code
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 dp As Single() = side.DashPattern
MessageBox.Show("The first value in the array is " + dp(0).ToString() + ".")

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.