[]
        
(Showing Draft Content)

C1.Win.C1Input.Margins

Margins Class

Represents the four margins around a control’s content.

Inheritance
Margins
Implements
Namespace: C1.Win.C1Input
Assembly: C1.Win.C1Input.4.8.dll
Syntax
[TypeConverter(typeof(MarginsConverter))]
public class Margins : ICloneable

Constructors

Name Description
Margins()

Initializes a new instance of the Margins class.

Margins(int, int, int, int)

Initializes a new instance of the Margins class.

Properties

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.

Methods

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.