Skip to content

Padding Property

Description

Gets or sets a MarkupThickness value that describes the amount of space between a MarkupBorder and its child element.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property Padding() As MarkupThickness

Return Type

A MarkupThickness that describes the amount of space between MarkupBorder and its single child element.

Remarks

Padding can be described as uniform in all directions (e.g., Padding="10"), or as four distinct values that represent left, top, right, and bottom padding independently (e.g., Padding="5,0,10,20").

If a specified padding thickness exceeds the corresponding content area dimension (for example, the sum of the left and right padding widths exceeds the content area width), the thickness of the padding is proportionally reduced to be no greater than the relevant content area dimension.

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.