Skip to content

Border.Padding

property · Border · cAlgo.API

DesktopCLICloud

Gets or sets the border padding thickness. Property value can be set using Thickness, number, or a string new Thickness(5), new Thickness(1, 2, 3, 4), 5, "5", "1 2 3 4".

Environment behaviour

CLI — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Cloud — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Definition

public Thickness Padding {get; set;}
border.Padding: Thickness

Returns Thickness

Examples

var border = new Border { BackgroundColor = Color.DarkSlateGray, Padding = new Thickness(10, 5, 10, 5) };
border.Child = new TextBlock { Text = "Padded content" };
Chart.AddControl(border);
border = Border()
border.BackgroundColor = Color.DarkSlateGray
border.Padding = Thickness(10, 5, 10, 5)
textBlock = TextBlock()
textBlock.Text = "Padded content"
border.Child = textBlock
api.Chart.AddControl(border)