[]
Represents the four margins around a control’s content.
[TypeConverter(typeof(MarginsConverter))]
public class Margins : ICloneable
Name | Description |
---|---|
Margins() | Initializes a new instance of the Margins class. |
Margins(int, int, int, int) | Initializes a new instance of the Margins class. |
Name | Description |
---|---|
Bottom | Gets or sets the bottom margin, in pixels. |
Left | Gets or sets the left margin, in pixels. |
Right | Gets or sets the right margin, in pixels. |
Top | Gets or sets the top margin, in pixels. |
Name | Description |
---|---|
Clone() | Creates an identical copy of the current Margins. |
Equals(object) | Overloaded. Determines whether two Object instances are equal. |
GetHashCode() | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
Reset() | Sets all margins to zero. |
Set(Margins) | Overloaded. Sets the margin values. |
Set(int, int, int, int) | Overloaded. Sets the margin values. |
ShouldSerialize() | Returns true if at least one margin differs from the default zero value. Otherwise, returns false. |
ToString() | Converts this Margins to a human readable string. |