API Reference

Struct

OdfLength

Namespace OfficeIMO.OpenDocument
Assembly OfficeIMO.OpenDocument
Base ValueType
Implements
IEquatable<OdfLength>
Modifiers sealed

Preserves an ODF length's invariant lexical representation.

Inheritance

  • ValueType
  • OdfLength

Usage

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

Accepted by parameters

Methods

public static OdfLength Centimeters(Double value) #
Returns: OdfLength

Creates a centimeter length.

Parameters

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

Parameters

other OfficeIMO.OpenDocument.OdfLength requiredposition: 0
public override Boolean Equals(Object obj) #
Returns: Boolean

Parameters

obj System.Object requiredposition: 0
public override Int32 GetHashCode() #
Returns: Int32
public static OdfLength Inches(Double value) #
Returns: OdfLength

Creates an inch length.

Parameters

value System.Double requiredposition: 0
public static OdfLength Parse(String value) #
Returns: OdfLength

Creates a length from an ODF lexical value such as `2.54cm` or `12pt`.

Parameters

value System.String requiredposition: 0
public static OdfLength Points(Double value) #
Returns: OdfLength

Creates a point length.

Parameters

value System.Double requiredposition: 0
public Double ToCentimeters() #
Returns: Double

Converts this absolute ODF length to centimeters.

public Double ToPoints() #
Returns: Double

Converts this absolute ODF length to points.

public override String ToString() #
Returns: String