Skip to content

Padding Property

Description

Gets or sets a value that indicates the thickness of padding space between the boundaries of the content area and the content displayed by a MarkupTextBlock.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property Padding() As MarkupThickness

Return Type

A MarkupThickness structure specifying the amount of padding to apply, in pixels.

Remarks

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

If a specified padding thickness exceeds the corresponding content area dimension, 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.