Padding.Horizontal Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the combined padding for the right and left edges.

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

public int Horizontal { get; }

Property Value

Type: System.Int32

Gets the sum, in pixels, of the Left and Right padding values.

This property is convenient for use in many layout calculations.

.NET Framework
Available since 2.0
Return to top