Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Struct

HtmlRenderMargins

OfficeIMO.Html

Namespace
OfficeIMO.Html
Assembly
OfficeIMO.Html
Source revision
be6c300e4ab1 with working tree changes
Base
ValueType
Implements
IEquatable<HtmlRenderMargins>
Modifiers
sealed

Immutable HTML render margins measured in CSS pixels.

Inheritance

  • ValueType
  • HtmlRenderMargins

Usage

Explore 8 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 3

Accepted by parameters 5

Constructors

public HtmlRenderMargins(double left, double top, double right, double bottom) #

Creates page or continuous-surface margins.

Parameters

left double required
top double required
right double required
bottom double required

Methods

public static HtmlRenderMargins All(double value) #

Creates equal margins on every side.

Parameters

value double required
Equals 2 overloads
public bool Equals(HtmlRenderMargins other) #

Indicates whether the current object is equal to another object of the same type.

Parameters

other OfficeIMO.Html.HtmlRenderMargins required
An object to compare with this object.

Returns

bool true if the current object is equal to the other parameter; otherwise, false.
public override bool Equals(object? obj) #

Indicates whether this instance and a specified object are equal.

Parameters

obj object? required
The object to compare with the current instance.

Returns

bool true if obj and this instance are the same type and represent the same value; otherwise, false.
public override int GetHashCode() #

Returns the hash code for this instance.

Returns

int A 32-bit signed integer that is the hash code for this instance.
public static bool op_Equality(HtmlRenderMargins left, HtmlRenderMargins right) #

Equality operator.

Parameters

left OfficeIMO.Html.HtmlRenderMargins required
right OfficeIMO.Html.HtmlRenderMargins required

Returns

bool
public static bool op_Inequality(HtmlRenderMargins left, HtmlRenderMargins right) #

Inequality operator.

Parameters

left OfficeIMO.Html.HtmlRenderMargins required
right OfficeIMO.Html.HtmlRenderMargins required

Returns

bool

Properties

public double Left { get; } #

Left margin in CSS pixels.

public double Top { get; } #

Top margin in CSS pixels.

public double Right { get; } #

Right margin in CSS pixels.

public double Bottom { get; } #

Bottom margin in CSS pixels.