Returns a BorderPart object representing the specified part of the border. This is the indexer for the Border object.

 public BorderPart this[Part part] { get; }
Public Default ReadOnly Property Item(ByVal part As Part) As BorderPart

The part of the border for which to set the line style.

The BorderPart object representing the specified part of the border.

BorderPart bp = b[Border.Part.Left];
Dim bp As BorderPart = b.Item(Border.Part.Left)