Spread Windows Forms 12.0 Product Documentation
Top Property (BevelBorder)
Example 


FarPoint.Win Assembly > FarPoint.Win Namespace > BevelBorder Class : Top Property
Gets whether the line is drawn on the top edge of the border.
Syntax
'Declaration
 
Public ReadOnly Property Top As Boolean
'Usage
 
Dim instance As BevelBorder
Dim value As Boolean
 
value = instance.Top
public bool Top {get;}

Property Value

Boolean value: true if top border line is drawn; false otherwise
Example
This example creates a bevel border.
bool b = bevel.Bottom;
bool t = bevel.Top;
bool r = bevel.Right;
bool l = bevel.Left;
if (b && t && r && l) 
{ 
      MessageBox.Show("The border displays on all the sides."); 
} 
else 
{ 
      MessageBox.Show("Some of the sides do not display the border."); 
}
Dim bevel As New FarPoint.Win.BevelBorder(BevelBorderType.Lowered, Color.Blue, Color.LightBlue, 1.5, True, False, True, False)
Dim b As Boolean = bevel.Bottom
Dim t As Boolean = bevel.Top
Dim r As Boolean = bevel.Right
Dim l As Boolean = bevel.Left
If b AndAlso t AndAlso r AndAlso l Then
      MessageBox.Show("The border displays on all the sides.")
Else
      MessageBox.Show("Some of the sides do not display the border.")
End If
See Also

Reference

BevelBorder Class
BevelBorder Members