| Visual Basic (Declaration) | |
|---|---|
Public Overridable Property BorderSides As Border3DSide | |
| C# | |
|---|---|
public virtual Border3DSide BorderSides {get; set;} | |
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 Basic | Copy Code |
|---|---|
Imports System.Windows.Forms | |
| C# | Copy Code |
|---|---|
using System.Windows.Forms; | |
