Skip to main content
Tab

Margins Members

Contains margin settings.

Constructors

Name Description
Margins() Initializes a new instance of the Margins class.
Margins(Unit, Unit, Unit, Unit, Unit) Initializes a new instance of the Margins class with the specified margin values for all the edges.
Margins(Unit, Unit, Unit, Unit) Initializes a new instance of the Margins class with the specified margin values for the left, right, top and bottom edges.
Margins(Unit) Initializes a new instance of the Margins class with the specified margin value for all the edges.

Properties

Name Description
IsEmpty Gets a value that indicates whether this Margins object is initialized with the default values.
Margin Gets or sets the common margin value for all four edges.
MarginBottom Gets or sets the margin value for the bottom edge.
MarginLeft Gets or sets the margin value for the left edge.
MarginRight Gets or sets the margin value for the right edge.
MarginTop Gets or sets the margin value for the top edge.

Methods

Name Description
Assign(Margins) Copies the settings from the specified Margins object to the current object.
AssignToControl(WebControl) Copies the settings from the current Margins object to the specified object.
CopyFrom(Margins) Duplicates the properties of the specified object into the current instance of the Margins class.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
FillStyleAttributes(CssStyleCollection, IUrlResolutionService) For internal use only.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetMarginBottom() Returns the margin value for the bottom edge.
GetMarginLeft() Returns the margin value for the left edge.
GetMarginRight() Returns the margin value for the right edge.
GetMarginTop() Returns the margin value for the top edge.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
MergeWith(Margins) Combines the properties of the specified Margins with the current instance of the Margins class.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Reset() Returns the Margins object to its original state.
ToString() Returns a string that represents the current object.
See Also