TW3Border



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.

W3Button TW3Border.png

Unit: SmartCL.Borders.pas

Hierarchy
TObject
TW3Border
Properties
Type-icon.png Color
Type-icon.png Edge
Type-icon.png Margin
Type-icon.png Padding
Type-icon.png Style
Type-icon.png Width

Properties

Type-icon.png Color

Specifies color of Border object.

property Color: TColor read getColor write setColor;

Example:

W3Button1.Border.Right.Color:= clRed;

Type-icon.png 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

Type-icon.png 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;

Type-icon.png 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;

Type-icon.png Style

Specifies style of Border object.

property Style: TW3BorderEdgeStyle read getStyle write setStyle;


See also: EdgeStyle, SetStyle

Type-icon.png Width

Specifies size (width) of border.

property Width: Integer read getWidth write setWidth;

Example:

W3Button1.Border.Bottom.Width:= 4px;

Output:

border-bottom-width: 4px;