Class Border
The Border for a View.
public class Border : Adornment, IDisposable, ISupportInitializeNotification, ISupportInitialize
- Inheritance
-
Border
- Implements
- Inherited Members
Remarks
Renders a border around the view with the Title. A border using LineStyle will be drawn on the sides of Thickness that are greater than zero.
The Title of Parent will be drawn based on the value of Top:
If 1
:
┌┤1234├──┐
│ │
└────────┘
If 2
:
┌────┐
┌┤1234├──┐
│ │
└────────┘
If 3
:
┌────┐
┌┤1234├──┐
│└────┘ │
│ │
└────────┘
See the Adornment class.
Constructors
- Border(View)
Constructs a new adornment for the view specified by
parent
.
Properties
- ColorScheme
The color scheme for the Border. If set to null, gets the Parent scheme. color scheme.
- LineStyle
Sets the style of the border by changing the Thickness. This is a helper API for setting the Thickness to
(1,1,1,1)
and setting the line style of the views that comprise the border. If set to None no border will be drawn.
Methods
- BeginInit()
Signals the View that initialization is starting. See ISupportInitialize.
- Dispose(bool)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
- OnDrawContent(Rectangle)
Redraws the Adornments that comprise the Adornment.
- OnMouseEvent(MouseEvent)
Called when a mouse event occurs within the view's Viewport.