Border
Version:
The Border control contains other controls. It creates a placeholder called Content when you add it to a page, and it contains any control that has this placeholder as the PlaceholderKey.
A Border control can have a border and padding. You can align the controls that it contains in different ways.
You cannot set the size of a Border control; it has no specific size set. You can use a Border control that contains no controls to produce an empty HTML “div” element.
Properties
Properties
| Name | Description | Default |
|---|---|---|
| Appearance | ||
| ContentAlign | Specify the alignment of the contained controls: Left, Center, or Right. | Left |
| Height | Specify the height of the control in pixels. | Null |
| PaddingType | Specify where the Border control applies padding: All, Top, Right, Bottom, Left, or LeftBottom. The Border control only uses this property when UsePadding is true. | All |
| ShowBorder | If true, the Border control has a border. | False |
| UsePadding | If true, the Border control has padding. The padding is the extra space between the content and the border – it does not matter if the border is visible or not. | False |
Configuration
Configuration
You can create a configuration item for a Border control by creating an item based on the Border Parameters template.
The configuration item has these specific fields:
- ContentAlignment
- ShowBorder
- UsePadding
It inherits these fields:
- IsVisible
- AccessKey
- Tooltip
- Behaviors
- Id
If you have suggestions for improving this article, let us know!