TW3Border
Specifies class used by Left, Right, Top and Bottom properties of TW3Borders class. This properties providing access to each (of four) border of component.
Unit: SmartCL.Borders.pas
- Hierarchy
- TObject
- TW3Border
Properties |
---|
Color |
Edge |
Margin |
Padding |
Style |
Width |
Properties
Color
Specifies color of Border object.
property Color: TColor read getColor write setColor;
Example:
W3Button1.Border.Right.Color:= clRed;
Edge
Determine position of border along edge of component. This property is read-only.
property Edge: TW3BorderEdge read FEdge;
When DOM properties are set or read, component read this this property
Margin
Specifies margin property at same side where border belong (Edge property).
property Margin: Integer read getMargin write setmargin;
Example:
W3Button1.Border.Left.Margin:= 5px;
Output:
margin-left: 5px;
Padding
Specifies padding property of DOM object at same side where border belong (Edge property).
property Padding: Integer read getPadding write setPadding;
Example:
W3Button1.Border.Bottom.Padding:= 5px;
Output:
padding-bottom: 5px;
Style
Specifies style of Border object.
property Style: TW3BorderEdgeStyle read getStyle write setStyle;
Width
Specifies size (width) of border.
property Width: Integer read getWidth write setWidth;
Example:
W3Button1.Border.Bottom.Width:= 4px;
Output:
border-bottom-width: 4px;