Infragistics2.Win.v8.1
BorderSides Property
See Also  Example
Infragistics.Win Namespace > UIElement Class : BorderSides Property

Returns flags indicating which borders will be drawn

Syntax

Visual Basic (Declaration) 
Public Overridable Property BorderSides As Border3DSide
C# 
public virtual Border3DSide BorderSides {get; set;}

Example

In this sample we override the virtual property BorderSides of UIElement. The returns flags indicating which borders will be drawn. In this case we only want the right and left edges to be drawn.

Visual BasicCopy Code
     Imports System.Windows.Forms

    Public Overrides Property BorderSides() As System.Windows.Forms.Border3DSide

        Get

            Return Border3DSide.Left Or Border3DSide.Right

        End Get

        Set(ByVal Value As System.Windows.Forms.Border3DSide)

            MyBase.BorderSides = Value

        End Set

    End Property
C#Copy Code
      using System.Windows.Forms;

       
public override System.Windows.Forms.Border3DSide BorderSides
       {

           get
           {
               
return Border3DSide.Left | Border3DSide.Right ;
           }

       }

See Also