| Infragistics.Win.FormattedLinkLabel Namespace > SectionUIElement Class : BorderStyle Property (SectionUIElement) |
Overridden. BorderStyle of the element. UIElementBorderStyle
[Visual Basic]
Overrides Public Property BorderStyle As UIElementBorderStyle[C#]
public override UIElementBorderStyle BorderStyle {get; set;}This sample demonstrates BorderStyle in use with the ControlElement and IsFlatModeProperty. If the ControlElement is in flat mode, we draw a simple solid border, otherwise we draw raised.
[Visual Basic]
Imports Infragistics.Win
Public Overrides Property BorderStyle() As UIElementBorderStyle
Get
' Returns borderstyle based on FlatMode property of the control.
If Me.ControlElement.UltraControl.IsFlatMode Then
Return UIElementBorderStyle.Solid
Else
Return UIElementBorderStyle.Raised
End If
End Get
Set(ByVal Value As UIElementBorderStyle)
MyBase.BorderStyle = Value
End Set
End Property[C#]
using Infragistics.Win;
public override UIElementBorderStyle BorderStyle
{
get
{
// Return borderstyle based on FlatMode property of the control.
if (this.ControlElement.UltraControl.IsFlatMode)
return UIElementBorderStyle.Solid;
else
return UIElementBorderStyle.Raised;
}
}