StructPadding
Represents the padding values around an element in a layout.
Definition
Namespace:Telerik.Windows.Documents.Layout
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
[TypeConverter(typeof(PaddingConverter))]
public struct Padding
Constructors
Fields
Properties
All
Represents the padding applied to all sides of a layout element.
Bottom
Gets or sets the bottom padding value of the layout element.
Horizontal
Gets or sets the horizontal padding value.
Left
Gets or sets the left padding value.
Right
Gets or sets the right padding value of the layout element.
Size
Represents the size of padding, defined by its width and height in the Telerik UI framework.
Declaration
[Browsable(false)]
public Size Size { get; }
Property Value
Size
Top
Gets or sets the top padding value.
Methods
Add(Padding, Padding)
Combines two Padding instances into a single Padding instance by adding their respective values.
Declaration
public static Padding Add(Padding padding1, Padding padding2)
Parameters
padding1
The first Padding instance to be added.
padding2
The second Padding instance to be added.
Returns
A new Padding instance that represents the sum of the two specified Padding instances.
Equals(object)
Determines whether the specified object is equal to the current Padding instance.
GetHashCode()
Gets the hash code for the current instance of the Padding class.
Declaration
public override int GetHashCode()
Returns
A hash code that is generated based on the properties of the Padding instance.
Overrides
Subtract(Padding, Padding)
Subtracts the specified Padding values and returns the resulting Padding.
ToString()
Returns a string representation of the current Padding instance.