System.Windows.Forms.Padding.op_Addition Method

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

Syntax

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

Parameters

p1
The first System.Windows.Forms.Padding to add.
p2
The second System.Windows.Forms.Padding to add.

Returns

A new System.Windows.Forms.Padding that results from adding p1 and p2.

Remarks

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

This operation is transitive.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0