Show / Hide Table of Contents

Struct PaddingLength

Describes the length of one side of the padding around the content of a PaddedViewbox.

Implements
System.IEquatable<PaddingLength>
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
[TypeConverter(typeof(PaddingLengthConverter))]
public struct PaddingLength : IEquatable<PaddingLength>

Constructors

View Source

PaddingLength(Double)

Initializes a new instance of the PaddingLength structure that has the specified length (supplied as System.Double) in pixels.

Declaration
public PaddingLength(double pixels)
Parameters
Type Name Description
System.Double pixels
View Source

PaddingLength(Double, PaddingUnitType)

Initializes a new instance of the PaddingLength structure and specifies what kind of value it holds.

Declaration
public PaddingLength(double value, PaddingUnitType type)
Parameters
Type Name Description
System.Double value

The initial value of this instance of PaddingLength.

PaddingUnitType type

The PaddingUnitType held by this instance of PaddingLength.

Fields

View Source

Empty

Represents an empty PaddingLength.

Declaration
public static readonly PaddingLength Empty
Field Value
Type Description
PaddingLength
Remarks

This is not a PaddingLength with a Value of 0.

Properties

View Source

IsEmpty

Gets a value indicating whether this instance is empty.

Declaration
public readonly bool IsEmpty { get; }
Property Value
Type Description
System.Boolean
View Source

IsStar

Gets a value indicating whether the PaddingLength holds a value that is expressed as a weighted proportion of the contents size.

Declaration
public readonly bool IsStar { get; }
Property Value
Type Description
System.Boolean
View Source

Type

Gets or sets the associated PaddingUnitType for the PaddingLength.

Declaration
public PaddingUnitType Type { readonly get; set; }
Property Value
Type Description
PaddingUnitType
View Source

Value

Gets or sets a System.Double that represents the value of the PaddingLength.

Declaration
public double Value { readonly get; set; }
Property Value
Type Description
System.Double

Methods

View Source

Equals(PaddingLength)

Compares this PaddingLength structure to another PaddingLength for equality.

Declaration
public bool Equals(PaddingLength other)
Parameters
Type Name Description
PaddingLength other

The padding to compare.

Returns
Type Description
System.Boolean

true if the two instances of PaddingLength do not have the same value and PaddingUnitType; otherwise false.

View Source

Equals(Object)

Compares this PaddingLength structure to another System.Object for equality.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

The object to compare.

Returns
Type Description
System.Boolean

true if the two objects are equal; otherwise false.

Overrides
System.ValueType.Equals(System.Object)
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.ValueType.GetHashCode()
View Source

ToString()

Returns the string representation if the PaddingLength structure.

Declaration
public override string ToString()
Returns
Type Description
System.String

A System.String that represents the PaddingLength structure.

Overrides
System.ValueType.ToString()
View Source

ToString(CultureInfo)

Returns the string representation if the PaddingLength structure according to the specified System.Globalization.CultureInfo.

Declaration
public string ToString(CultureInfo cultureInfo)
Parameters
Type Name Description
System.Globalization.CultureInfo cultureInfo

The culture used to format the string representation.

Returns
Type Description
System.String

A System.String that represents the PaddingLength structure.

Operators

View Source

Equality(PaddingLength, PaddingLength)

Compares two PaddingLength structures for equality.

Declaration
public static bool operator ==(PaddingLength a, PaddingLength b)
Parameters
Type Name Description
PaddingLength a

The first instance of PaddingLength to compare.

PaddingLength b

The second instance of PaddingLength to compare.

Returns
Type Description
System.Boolean

true if the two instances of PaddingLength have the same value and PaddingUnitType; otherwise false.

View Source

Inequality(PaddingLength, PaddingLength)

Compares two PaddingLength structures for inequality.

Declaration
public static bool operator !=(PaddingLength a, PaddingLength b)
Parameters
Type Name Description
PaddingLength a

The first instance of PaddingLength to compare.

PaddingLength b

The second instance of PaddingLength to compare.

Returns
Type Description
System.Boolean

true if the two instances of PaddingLength do not have the same value and PaddingUnitType; otherwise false.

Implements

System.IEquatable<T>

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX