Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Struct

HtmlRenderMargins

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

Immutable HTML render margins measured in CSS pixels.

Inheritance

  • ValueType
  • HtmlRenderMargins

Usage

Explore 9 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.

Accepted by parameters 5

Constructors

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

Creates page or continuous-surface margins.

Parameters

left System.Double requiredposition: 0
top System.Double requiredposition: 1
right System.Double requiredposition: 2
bottom System.Double requiredposition: 3

Methods

public static HtmlRenderMargins All(Double value) #
Returns: HtmlRenderMargins

Creates equal margins on every side.

Parameters

value System.Double requiredposition: 0
Equals 2 overloads
public Boolean Equals(HtmlRenderMargins other) #
Returns: Boolean

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

Parameters

other OfficeIMO.Html.HtmlRenderMargins requiredposition: 0
An object to compare with this object.

Returns

true if the current object is equal to the other parameter; otherwise, false.

public override Boolean Equals(Object? obj) #
Returns: Boolean

Indicates whether this instance and a specified object are equal.

Parameters

obj System.Object? requiredposition: 0
The object to compare with the current instance.

Returns

true if obj and this instance are the same type and represent the same value; otherwise, false.

public override Int32 GetHashCode() #
Returns: Int32

Returns the hash code for this instance.

Returns

A 32-bit signed integer that is the hash code for this instance.

public static Boolean op_Equality(HtmlRenderMargins left, HtmlRenderMargins right) #
Returns: Boolean

Equality operator.

Parameters

left OfficeIMO.Html.HtmlRenderMargins requiredposition: 0
right OfficeIMO.Html.HtmlRenderMargins requiredposition: 1
public static Boolean op_Inequality(HtmlRenderMargins left, HtmlRenderMargins right) #
Returns: Boolean

Inequality operator.

Parameters

left OfficeIMO.Html.HtmlRenderMargins requiredposition: 0
right OfficeIMO.Html.HtmlRenderMargins requiredposition: 1

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.