Padding
Stores integer edge insets used for document layout, including page margins and table-cell padding. Edge values use the document layout's device-independent units.
Definition
Namespace:Telerik.WinForms.Documents.Layout
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
[TypeConverter(typeof(PaddingConverter))]
public struct Padding
Constructors
Initializes all four edge insets to the same value.
Copies the four edge values and reconstructs the uniform-padding state.
Fields
Properties
Gets or sets a uniform inset for all four edges.
public int All { get; set; }
The getter returns -1 when the all-edge mode is inactive. Setting an individual edge clears that mode, even when the edge value is unchanged.
Gets or sets the bottom edge inset, which contributes to Vertical.
public int Bottom { get; set; }
Gets the sum of the left and right edge insets.
[Browsable(false)]
public int Horizontal { get; }
Gets or sets the left edge inset, which contributes to Horizontal.
public int Left { get; set; }
Gets or sets the right edge inset, which contributes to Horizontal.
public int Right { get; set; }
Gets the total horizontal and vertical inset, with width equal to Horizontal and height equal to Vertical.
[Browsable(false)]
public Size Size { get; }
Gets or sets the top edge inset, which contributes to Vertical.
public int Top { get; set; }
Methods
Returns a hash code derived from the four edge insets.
public override int GetHashCode()
A hash code consistent with edge-based equality.
Overrides:
Subtracts each edge inset in the second value from the corresponding inset in the first.
Returns the edge values in a labeled diagnostic format.
public override string ToString()
A string containing the left, top, right, and bottom values.
Overrides:
Operators
Subtracts corresponding edge insets without clamping the result.