Class Padding
Represents padding or margin information.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Primitives
Assembly: Telerik.Windows.Documents.Core.dll
Syntax
public class Padding
Constructors
Padding(Double)
Initializes a new instance of the Padding class and sets all paddings to a given value.
Declaration
public Padding(double all)
Parameters
System.Double
all
The value in device independent pixels (1/96 inch). |
Padding(Double, Double, Double, Double)
Initializes a new instance of the Padding class.
Declaration
public Padding(double left, double top, double right, double bottom)
Parameters
System.Double
left
The left padding in device independent pixels (1/96 inch). |
System.Double
top
The top padding in device independent pixels (1/96 inch). |
System.Double
right
The right padding in device independent pixels (1/96 inch). |
System.Double
bottom
The bottom padding in device independent pixels (1/96 inch). |
Fields
Empty
Properties
Bottom
Gets the bottom padding. The value is in device independent pixels (1/96 inch).
Declaration
public double Bottom { get; }
Property Value
System.Double
The bottom padding. |
Left
Gets the left padding. The value is in device independent pixels (1/96 inch).
Declaration
public double Left { get; }
Property Value
System.Double
The left padding. |
Right
Gets the right padding. The value is in device independent pixels (1/96 inch).
Declaration
public double Right { get; }
Property Value
System.Double
The right padding. |
Top
Gets the top padding. The value is in device independent pixels (1/96 inch).
Declaration
public double Top { get; }
Property Value
System.Double
The top padding. |
Methods
Equals(Object)
Determines whether the specified System.Object is equal to the current System.Object.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The System.Object to compare with the current System.Object. |
Returns
System.Boolean
Returns true if the specified System.Object is equal to the current System.Object; otherwise, false. |
Overrides
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
System.Int32
A hash code for the current System.Object. |
Overrides
ToString()
Declaration
public override string ToString()
Returns
System.String
|
Overrides
Operators
Equality(Padding, Padding)
Determines whether the specified paddings are equal.
Declaration
public static bool operator ==(Padding a, Padding b)
Parameters
Padding
a
|
Padding
b
|
Returns
System.Boolean
True if the paddings are equal. |
Inequality(Padding, Padding)
Determines whether the specified paddings are different.
Declaration
public static bool operator !=(Padding a, Padding b)
Parameters
Padding
a
|
Padding
b
|
Returns
System.Boolean
True if the paddings are different. |