Struct
HtmlRenderMargins
OfficeIMO.Html
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
- Method HtmlRenderMargins.All
- Property HtmlRenderOptions.Margins
- Property HtmlRenderPage.Margins
Accepted by parameters 5
- Method HtmlRenderMargins.Equals
- Method HtmlRenderMargins.op_Equality
- Method HtmlRenderMargins.op_Equality
- Method HtmlRenderMargins.op_Inequality
- Method HtmlRenderMargins.op_Inequality
Constructors
public HtmlRenderMargins(double left, double top, double right, double bottom) #Creates page or continuous-surface margins.
Parameters
- left double
- top double
- right double
- bottom double
Methods
public static HtmlRenderMargins All(double value) #Creates equal margins on every side.
Parameters
- value double
Returns
HtmlRenderMarginsEquals 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
- 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?
- 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
- right OfficeIMO.Html.HtmlRenderMargins
Returns
boolpublic static bool op_Inequality(HtmlRenderMargins left, HtmlRenderMargins right) #Inequality operator.
Parameters
- left OfficeIMO.Html.HtmlRenderMargins
- right OfficeIMO.Html.HtmlRenderMargins
Returns
bool