Padding.Addition Operator (Padding, Padding)

 
equivalentCodeEntityM:System.Windows.Forms.Padding.Add(System.Windows.Forms.Padding,System.Windows.Forms.Padding)

Performs vector addition on the two specified Padding objects, resulting in a new Padding.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public static Padding operator +(
	Padding p1,
	Padding p2
)

Parameters

p1
Type: System.Windows.Forms.Padding

The first Padding to add.

p2
Type: System.Windows.Forms.Padding

The second Padding to add.

Return Value

Type: System.Windows.Forms.Padding

A new Padding that results from adding p1 and p2.

A vector addition operation is the result of adding the padding values for each edge. For example, the Left property of the result is the sum of the Left properties of the two operands.

This operation is transitive.

.NET Framework
Available since 2.0
Return to top
Show: