# OdfLength

Preserves an ODF length's invariant lexical representation.

Struct 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[OdfLength.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Values/OdfLength.cs#L13)

**Base**

`ValueType`

**Implements**

`IEquatable<OdfLength>`

**Modifiers**

sealed

Preserves an ODF length's invariant lexical representation.

## Inheritance

- ValueType
- OdfLength

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Editable OpenDocument proposal](/showcase/opendocument-service-proposal/) Sample
  
  Create an ODT service proposal with styled text, acceptance conditions, assumptions and a PDF review copy. Includes the ODT and runnable C# source.
- [Workshop agenda in ODT and flat XML](/showcase/opendocument-workshop-agenda/) Sample
  
  Save one structured workshop agenda as editable ODT, inspectable FODT and a PDF review copy. Download all three formats and the generating C# source.
- [Client appointment letter](/showcase/opendocument-client-letter/) Sample
  
  Create an editable ODT client letter with a dated appointment, preparation notes, follow-up commitment and clear typography. Export a PDF copy.

## Usage

Explore 173 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 145

- Property [OdfInsets.Bottom](/api/open-document/officeimo-opendocument-odfinsets/#property-bottom)
- Property [OdfInsets.Left](/api/open-document/officeimo-opendocument-odfinsets/#property-left)
- Property [OdfInsets.Right](/api/open-document/officeimo-opendocument-odfinsets/#property-right)
- Property [OdfInsets.Top](/api/open-document/officeimo-opendocument-odfinsets/#property-top)
- Method [OdfLength.Centimeters](/api/open-document/officeimo-opendocument-odflength/#method-centimeters-double)
- Method [OdfLength.Inches](/api/open-document/officeimo-opendocument-odflength/#method-inches-double)
- Method [OdfLength.Parse](/api/open-document/officeimo-opendocument-odflength/#method-parse-string)
- Method [OdfLength.Points](/api/open-document/officeimo-opendocument-odflength/#method-points-double)
- Property [OdfRect.Height](/api/open-document/officeimo-opendocument-odfrect/#property-height)
- Property [OdfRect.Width](/api/open-document/officeimo-opendocument-odfrect/#property-width)
- Property [OdfRect.X](/api/open-document/officeimo-opendocument-odfrect/#property-x)
- Property [OdfRect.Y](/api/open-document/officeimo-opendocument-odfrect/#property-y)
- Property [OdfShape.StrokeEndMarkerWidth](/api/open-document/officeimo-opendocument-odfshape/#property-strokeendmarkerwidth)
- Property [OdfShape.StrokeStartMarkerWidth](/api/open-document/officeimo-opendocument-odfshape/#property-strokestartmarkerwidth)
- Property [OdfShape.StrokeWidth](/api/open-document/officeimo-opendocument-odfshape/#property-strokewidth)
- Property [OdfShape.TextBoxMaximumHeight](/api/open-document/officeimo-opendocument-odfshape/#property-textboxmaximumheight)
- Property [OdfShape.TextBoxMaximumWidth](/api/open-document/officeimo-opendocument-odfshape/#property-textboxmaximumwidth)
- Property [OdfShape.TextBoxMinimumHeight](/api/open-document/officeimo-opendocument-odfshape/#property-textboxminimumheight)
- Property [OdfShape.TextBoxMinimumWidth](/api/open-document/officeimo-opendocument-odfshape/#property-textboxminimumwidth)
- Property [OdfStrokeDashPattern.DashLength](/api/open-document/officeimo-opendocument-odfstrokedashpattern/#property-dashlength)
- Property [OdfStrokeDashPattern.Distance](/api/open-document/officeimo-opendocument-odfstrokedashpattern/#property-distance)
- Property [OdfStrokeDashPattern.SecondDashLength](/api/open-document/officeimo-opendocument-odfstrokedashpattern/#property-seconddashlength)
- Property [OdfStyle.FontSize](/api/open-document/officeimo-opendocument-odfstyle/#property-fontsize)
- Property [OdfStyle.LineHeight](/api/open-document/officeimo-opendocument-odfstyle/#property-lineheight)
- Property [OdfStyle.MarginBottom](/api/open-document/officeimo-opendocument-odfstyle/#property-marginbottom)
- Property [OdfStyle.MarginLeft](/api/open-document/officeimo-opendocument-odfstyle/#property-marginleft)
- Property [OdfStyle.MarginRight](/api/open-document/officeimo-opendocument-odfstyle/#property-marginright)
- Property [OdfStyle.MarginTop](/api/open-document/officeimo-opendocument-odfstyle/#property-margintop)
- Property [OdfStyle.TextIndent](/api/open-document/officeimo-opendocument-odfstyle/#property-textindent)
- Property [OdfTabStop.Position](/api/open-document/officeimo-opendocument-odftabstop/#property-position)
- Property [OdfTextContent.FontSize](/api/open-document/officeimo-opendocument-odftextcontent/#property-fontsize)
- Property [OdfTextHyperlink.FontSize](/api/open-document/officeimo-opendocument-odftexthyperlink/#property-fontsize)
- Property [OdfTextParagraph.FontSize](/api/open-document/officeimo-opendocument-odftextparagraph/#property-fontsize)
- Property [OdfTextParagraph.LineHeight](/api/open-document/officeimo-opendocument-odftextparagraph/#property-lineheight)
- Property [OdfTextParagraph.MarginBottom](/api/open-document/officeimo-opendocument-odftextparagraph/#property-marginbottom)
- Property [OdfTextParagraph.MarginLeft](/api/open-document/officeimo-opendocument-odftextparagraph/#property-marginleft)
- Property [OdfTextParagraph.MarginRight](/api/open-document/officeimo-opendocument-odftextparagraph/#property-marginright)
- Property [OdfTextParagraph.MarginTop](/api/open-document/officeimo-opendocument-odftextparagraph/#property-margintop)
- Property [OdfTextRun.FontSize](/api/open-document/officeimo-opendocument-odftextrun/#property-fontsize)
- Property [OdgPage.Height](/api/open-document/officeimo-opendocument-odgpage/#property-height)
- Property [OdgPage.Width](/api/open-document/officeimo-opendocument-odgpage/#property-width)
- Property [OdgShape.CornerRadius](/api/open-document/officeimo-opendocument-odgshape/#property-cornerradius)
- Property [OdgShape.CornerRadiusX](/api/open-document/officeimo-opendocument-odgshape/#property-cornerradiusx)
- Property [OdgShape.CornerRadiusY](/api/open-document/officeimo-opendocument-odgshape/#property-cornerradiusy)
- Property [OdgShape.FontSize](/api/open-document/officeimo-opendocument-odgshape/#property-fontsize)
- Property [OdgShape.StrokeEndMarkerWidth](/api/open-document/officeimo-opendocument-odgshape/#property-strokeendmarkerwidth)
- Property [OdgShape.StrokeStartMarkerWidth](/api/open-document/officeimo-opendocument-odgshape/#property-strokestartmarkerwidth)
- Property [OdgShape.StrokeWidth](/api/open-document/officeimo-opendocument-odgshape/#property-strokewidth)
- Property [OdgShape.TextBoxMaximumHeight](/api/open-document/officeimo-opendocument-odgshape/#property-textboxmaximumheight)
- Property [OdgShape.TextBoxMaximumWidth](/api/open-document/officeimo-opendocument-odgshape/#property-textboxmaximumwidth)
- Property [OdgShape.TextBoxMinimumHeight](/api/open-document/officeimo-opendocument-odgshape/#property-textboxminimumheight)
- Property [OdgShape.TextBoxMinimumWidth](/api/open-document/officeimo-opendocument-odgshape/#property-textboxminimumwidth)
- Property [OdgShape.X1](/api/open-document/officeimo-opendocument-odgshape/#property-x1)
- Property [OdgShape.X2](/api/open-document/officeimo-opendocument-odgshape/#property-x2)
- Property [OdgShape.Y1](/api/open-document/officeimo-opendocument-odgshape/#property-y1)
- Property [OdgShape.Y2](/api/open-document/officeimo-opendocument-odgshape/#property-y2)
- Property [OdpEllipse.StrokeEndMarkerWidth](/api/open-document/officeimo-opendocument-odpellipse/#property-strokeendmarkerwidth)
- Property [OdpEllipse.StrokeStartMarkerWidth](/api/open-document/officeimo-opendocument-odpellipse/#property-strokestartmarkerwidth)
- Property [OdpEllipse.StrokeWidth](/api/open-document/officeimo-opendocument-odpellipse/#property-strokewidth)
- Property [OdpEllipse.TextBoxMaximumHeight](/api/open-document/officeimo-opendocument-odpellipse/#property-textboxmaximumheight)
- Property [OdpEllipse.TextBoxMaximumWidth](/api/open-document/officeimo-opendocument-odpellipse/#property-textboxmaximumwidth)
- Property [OdpEllipse.TextBoxMinimumHeight](/api/open-document/officeimo-opendocument-odpellipse/#property-textboxminimumheight)
- Property [OdpEllipse.TextBoxMinimumWidth](/api/open-document/officeimo-opendocument-odpellipse/#property-textboxminimumwidth)
- Property [OdpGroup.StrokeEndMarkerWidth](/api/open-document/officeimo-opendocument-odpgroup/#property-strokeendmarkerwidth)
- Property [OdpGroup.StrokeStartMarkerWidth](/api/open-document/officeimo-opendocument-odpgroup/#property-strokestartmarkerwidth)
- Property [OdpGroup.StrokeWidth](/api/open-document/officeimo-opendocument-odpgroup/#property-strokewidth)
- Property [OdpGroup.TextBoxMaximumHeight](/api/open-document/officeimo-opendocument-odpgroup/#property-textboxmaximumheight)
- Property [OdpGroup.TextBoxMaximumWidth](/api/open-document/officeimo-opendocument-odpgroup/#property-textboxmaximumwidth)
- Property [OdpGroup.TextBoxMinimumHeight](/api/open-document/officeimo-opendocument-odpgroup/#property-textboxminimumheight)
- Property [OdpGroup.TextBoxMinimumWidth](/api/open-document/officeimo-opendocument-odpgroup/#property-textboxminimumwidth)
- Property [OdpHyperlink.FontSize](/api/open-document/officeimo-opendocument-odphyperlink/#property-fontsize)
- Property [OdpImage.StrokeEndMarkerWidth](/api/open-document/officeimo-opendocument-odpimage/#property-strokeendmarkerwidth)
- Property [OdpImage.StrokeStartMarkerWidth](/api/open-document/officeimo-opendocument-odpimage/#property-strokestartmarkerwidth)
- Property [OdpImage.StrokeWidth](/api/open-document/officeimo-opendocument-odpimage/#property-strokewidth)
- Property [OdpImage.TextBoxMaximumHeight](/api/open-document/officeimo-opendocument-odpimage/#property-textboxmaximumheight)
- Property [OdpImage.TextBoxMaximumWidth](/api/open-document/officeimo-opendocument-odpimage/#property-textboxmaximumwidth)
- Property [OdpImage.TextBoxMinimumHeight](/api/open-document/officeimo-opendocument-odpimage/#property-textboxminimumheight)
- Property [OdpImage.TextBoxMinimumWidth](/api/open-document/officeimo-opendocument-odpimage/#property-textboxminimumwidth)
- Property [OdpLine.StrokeEndMarkerWidth](/api/open-document/officeimo-opendocument-odpline/#property-strokeendmarkerwidth)
- Property [OdpLine.StrokeStartMarkerWidth](/api/open-document/officeimo-opendocument-odpline/#property-strokestartmarkerwidth)
- Property [OdpLine.StrokeWidth](/api/open-document/officeimo-opendocument-odpline/#property-strokewidth)
- Property [OdpLine.TextBoxMaximumHeight](/api/open-document/officeimo-opendocument-odpline/#property-textboxmaximumheight)
- Property [OdpLine.TextBoxMaximumWidth](/api/open-document/officeimo-opendocument-odpline/#property-textboxmaximumwidth)
- Property [OdpLine.TextBoxMinimumHeight](/api/open-document/officeimo-opendocument-odpline/#property-textboxminimumheight)
- Property [OdpLine.TextBoxMinimumWidth](/api/open-document/officeimo-opendocument-odpline/#property-textboxminimumwidth)
- Property [OdpLine.X1](/api/open-document/officeimo-opendocument-odpline/#property-x1)
- Property [OdpLine.X2](/api/open-document/officeimo-opendocument-odpline/#property-x2)
- Property [OdpLine.Y1](/api/open-document/officeimo-opendocument-odpline/#property-y1)
- Property [OdpLine.Y2](/api/open-document/officeimo-opendocument-odpline/#property-y2)
- Property [OdpParagraph.FontSize](/api/open-document/officeimo-opendocument-odpparagraph/#property-fontsize)
- Property [OdpParagraph.LineHeight](/api/open-document/officeimo-opendocument-odpparagraph/#property-lineheight)
- Property [OdpPresentation.PageHeight](/api/open-document/officeimo-opendocument-odppresentation/#property-pageheight)
- Property [OdpPresentation.PageWidth](/api/open-document/officeimo-opendocument-odppresentation/#property-pagewidth)
- Property [OdpRectangle.StrokeEndMarkerWidth](/api/open-document/officeimo-opendocument-odprectangle/#property-strokeendmarkerwidth)
- Property [OdpRectangle.StrokeStartMarkerWidth](/api/open-document/officeimo-opendocument-odprectangle/#property-strokestartmarkerwidth)
- Property [OdpRectangle.StrokeWidth](/api/open-document/officeimo-opendocument-odprectangle/#property-strokewidth)
- Property [OdpRectangle.TextBoxMaximumHeight](/api/open-document/officeimo-opendocument-odprectangle/#property-textboxmaximumheight)
- Property [OdpRectangle.TextBoxMaximumWidth](/api/open-document/officeimo-opendocument-odprectangle/#property-textboxmaximumwidth)
- Property [OdpRectangle.TextBoxMinimumHeight](/api/open-document/officeimo-opendocument-odprectangle/#property-textboxminimumheight)
- Property [OdpRectangle.TextBoxMinimumWidth](/api/open-document/officeimo-opendocument-odprectangle/#property-textboxminimumwidth)
- Property [OdpRun.FontSize](/api/open-document/officeimo-opendocument-odprun/#property-fontsize)
- Property [OdpShape.StrokeEndMarkerWidth](/api/open-document/officeimo-opendocument-odpshape/#property-strokeendmarkerwidth)
- Property [OdpShape.StrokeStartMarkerWidth](/api/open-document/officeimo-opendocument-odpshape/#property-strokestartmarkerwidth)
- Property [OdpShape.StrokeWidth](/api/open-document/officeimo-opendocument-odpshape/#property-strokewidth)
- Property [OdpShape.TextBoxMaximumHeight](/api/open-document/officeimo-opendocument-odpshape/#property-textboxmaximumheight)
- Property [OdpShape.TextBoxMaximumWidth](/api/open-document/officeimo-opendocument-odpshape/#property-textboxmaximumwidth)
- Property [OdpShape.TextBoxMinimumHeight](/api/open-document/officeimo-opendocument-odpshape/#property-textboxminimumheight)
- Property [OdpShape.TextBoxMinimumWidth](/api/open-document/officeimo-opendocument-odpshape/#property-textboxminimumwidth)
- Property [OdpTable.StrokeEndMarkerWidth](/api/open-document/officeimo-opendocument-odptable/#property-strokeendmarkerwidth)
- Property [OdpTable.StrokeStartMarkerWidth](/api/open-document/officeimo-opendocument-odptable/#property-strokestartmarkerwidth)
- Property [OdpTable.StrokeWidth](/api/open-document/officeimo-opendocument-odptable/#property-strokewidth)
- Property [OdpTable.TextBoxMaximumHeight](/api/open-document/officeimo-opendocument-odptable/#property-textboxmaximumheight)
- Property [OdpTable.TextBoxMaximumWidth](/api/open-document/officeimo-opendocument-odptable/#property-textboxmaximumwidth)
- Property [OdpTable.TextBoxMinimumHeight](/api/open-document/officeimo-opendocument-odptable/#property-textboxminimumheight)
- Property [OdpTable.TextBoxMinimumWidth](/api/open-document/officeimo-opendocument-odptable/#property-textboxminimumwidth)
- Property [OdpTextBox.StrokeEndMarkerWidth](/api/open-document/officeimo-opendocument-odptextbox/#property-strokeendmarkerwidth)
- Property [OdpTextBox.StrokeStartMarkerWidth](/api/open-document/officeimo-opendocument-odptextbox/#property-strokestartmarkerwidth)
- Property [OdpTextBox.StrokeWidth](/api/open-document/officeimo-opendocument-odptextbox/#property-strokewidth)
- Property [OdpTextBox.TextBoxMaximumHeight](/api/open-document/officeimo-opendocument-odptextbox/#property-textboxmaximumheight)
- Property [OdpTextBox.TextBoxMaximumWidth](/api/open-document/officeimo-opendocument-odptextbox/#property-textboxmaximumwidth)
- Property [OdpTextBox.TextBoxMinimumHeight](/api/open-document/officeimo-opendocument-odptextbox/#property-textboxminimumheight)
- Property [OdpTextBox.TextBoxMinimumWidth](/api/open-document/officeimo-opendocument-odptextbox/#property-textboxminimumwidth)
- Property [OdsCell.FontSize](/api/open-document/officeimo-opendocument-odscell/#property-fontsize)
- Property [OdsCellRun.FontSize](/api/open-document/officeimo-opendocument-odscellrun/#property-fontsize)
- Property [OdsColumn.Width](/api/open-document/officeimo-opendocument-odscolumn/#property-width)
- Property [OdsColumnRun.Width](/api/open-document/officeimo-opendocument-odscolumnrun/#property-width)
- Property [OdsRow.Height](/api/open-document/officeimo-opendocument-odsrow/#property-height)
- Property [OdsRowRun.Height](/api/open-document/officeimo-opendocument-odsrowrun/#property-height)
- Property [OdtHyperlink.FontSize](/api/open-document/officeimo-opendocument-odthyperlink/#property-fontsize)
- Property [OdtImage.Height](/api/open-document/officeimo-opendocument-odtimage/#property-height)
- Property [OdtImage.Width](/api/open-document/officeimo-opendocument-odtimage/#property-width)
- Property [OdtPageLayout.Height](/api/open-document/officeimo-opendocument-odtpagelayout/#property-height)
- Property [OdtPageLayout.MarginBottom](/api/open-document/officeimo-opendocument-odtpagelayout/#property-marginbottom)
- Property [OdtPageLayout.MarginLeft](/api/open-document/officeimo-opendocument-odtpagelayout/#property-marginleft)
- Property [OdtPageLayout.MarginRight](/api/open-document/officeimo-opendocument-odtpagelayout/#property-marginright)
- Property [OdtPageLayout.MarginTop](/api/open-document/officeimo-opendocument-odtpagelayout/#property-margintop)
- Property [OdtPageLayout.Width](/api/open-document/officeimo-opendocument-odtpagelayout/#property-width)
- Property [OdtParagraph.FirstLineIndent](/api/open-document/officeimo-opendocument-odtparagraph/#property-firstlineindent)
- Property [OdtParagraph.FontSize](/api/open-document/officeimo-opendocument-odtparagraph/#property-fontsize)
- Property [OdtParagraph.IndentEnd](/api/open-document/officeimo-opendocument-odtparagraph/#property-indentend)
- Property [OdtParagraph.IndentStart](/api/open-document/officeimo-opendocument-odtparagraph/#property-indentstart)
- Property [OdtParagraph.LineHeight](/api/open-document/officeimo-opendocument-odtparagraph/#property-lineheight)
- Property [OdtParagraph.SpaceAbove](/api/open-document/officeimo-opendocument-odtparagraph/#property-spaceabove)
- Property [OdtParagraph.SpaceBelow](/api/open-document/officeimo-opendocument-odtparagraph/#property-spacebelow)
- Property [OdtSpan.FontSize](/api/open-document/officeimo-opendocument-odtspan/#property-fontsize)

### Accepted by parameters 28

- Constructor [OdfInsets.OdfInsets](/api/open-document/officeimo-opendocument-odfinsets/#constructor-ctor-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength) parameter `bottom`
- Constructor [OdfInsets.OdfInsets](/api/open-document/officeimo-opendocument-odfinsets/#constructor-ctor-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength) parameter `left`
- Constructor [OdfInsets.OdfInsets](/api/open-document/officeimo-opendocument-odfinsets/#constructor-ctor-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength) parameter `right`
- Constructor [OdfInsets.OdfInsets](/api/open-document/officeimo-opendocument-odfinsets/#constructor-ctor-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength) parameter `top`
- Method [OdfLength.Equals](/api/open-document/officeimo-opendocument-odflength/#method-equals-officeimo-opendocument-odflength) parameter `other`
- Constructor [OdfRect.OdfRect](/api/open-document/officeimo-opendocument-odfrect/#constructor-ctor-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength) parameter `height`
- Constructor [OdfRect.OdfRect](/api/open-document/officeimo-opendocument-odfrect/#constructor-ctor-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength) parameter `width`
- Constructor [OdfRect.OdfRect](/api/open-document/officeimo-opendocument-odfrect/#constructor-ctor-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength) parameter `x`
- Constructor [OdfRect.OdfRect](/api/open-document/officeimo-opendocument-odfrect/#constructor-ctor-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength) parameter `y`
- Constructor [OdfStrokeDashPattern.OdfStrokeDashPattern](/api/open-document/officeimo-opendocument-odfstrokedashpattern/#constructor-ctor-int32-officeimo-opendocument-odflength-officeimo-opendocument-odflength-int32-nullable-officeimo-opendocument-odflength-boolean) parameter `dashLength`
- Constructor [OdfStrokeDashPattern.OdfStrokeDashPattern](/api/open-document/officeimo-opendocument-odfstrokedashpattern/#constructor-ctor-int32-officeimo-opendocument-odflength-officeimo-opendocument-odflength-int32-nullable-officeimo-opendocument-odflength-boolean) parameter `distance`
- Constructor [OdfStrokeDashPattern.OdfStrokeDashPattern](/api/open-document/officeimo-opendocument-odfstrokedashpattern/#constructor-ctor-int32-officeimo-opendocument-odflength-officeimo-opendocument-odflength-int32-nullable-officeimo-opendocument-odflength-boolean) parameter `secondDashLength`
- Constructor [OdfTabStop.OdfTabStop](/api/open-document/officeimo-opendocument-odftabstop/#constructor-ctor-officeimo-opendocument-odflength-string-string) parameter `position`
- Method [OdgDocument.AddPage](/api/open-document/officeimo-opendocument-odgdocument/#method-addpage-string-nullable-officeimo-opendocument-odflength-nullable-officeimo-opendocument-odflength) parameter `height`
- Method [OdgDocument.AddPage](/api/open-document/officeimo-opendocument-odgdocument/#method-addpage-string-nullable-officeimo-opendocument-odflength-nullable-officeimo-opendocument-odflength) parameter `width`
- Method [OdgShape.AddGluePoint](/api/open-document/officeimo-opendocument-odgshape/#method-addgluepoint-officeimo-opendocument-odggluepointalignment-nullable-officeimo-opendocument-odflength-nullable-officeimo-opendocument-odflength) parameter `offsetX`
- Method [OdgShape.AddGluePoint](/api/open-document/officeimo-opendocument-odgshape/#method-addgluepoint-officeimo-opendocument-odggluepointalignment-nullable-officeimo-opendocument-odflength-nullable-officeimo-opendocument-odflength) parameter `offsetY`
- Method [OdgShapes.AddLine](/api/open-document/officeimo-opendocument-odgshapes/#method-addline-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-string) parameter `x1`
- Method [OdgShapes.AddLine](/api/open-document/officeimo-opendocument-odgshapes/#method-addline-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-string) parameter `x2`
- Method [OdgShapes.AddLine](/api/open-document/officeimo-opendocument-odgshapes/#method-addline-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-string) parameter `y1`
- Method [OdgShapes.AddLine](/api/open-document/officeimo-opendocument-odgshapes/#method-addline-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-string) parameter `y2`
- Method [OdgShapes.AddRoundedRectangle](/api/open-document/officeimo-opendocument-odgshapes/#method-addroundedrectangle-officeimo-opendocument-odfrect-officeimo-opendocument-odflength-string) parameter `radius`
- Method [OdpSlide.AddLine](/api/open-document/officeimo-opendocument-odpslide/#method-addline-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-string) parameter `x1`
- Method [OdpSlide.AddLine](/api/open-document/officeimo-opendocument-odpslide/#method-addline-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-string) parameter `x2`
- Method [OdpSlide.AddLine](/api/open-document/officeimo-opendocument-odpslide/#method-addline-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-string) parameter `y1`
- Method [OdpSlide.AddLine](/api/open-document/officeimo-opendocument-odpslide/#method-addline-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-string) parameter `y2`
- Method [OdtParagraph.AddImage](/api/open-document/officeimo-opendocument-odtparagraph/#method-addimage-byte-string-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odtimageanchor) parameter `height`
- Method [OdtParagraph.AddImage](/api/open-document/officeimo-opendocument-odtparagraph/#method-addimage-byte-string-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odtimageanchor) parameter `width`

Filter members 

Show inherited

## Methods

`public static OdfLength Centimeters(double value)` [#](#method-centimeters-double)

[OdfLength.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Values/OdfLength.cs#L18)

Creates a centimeter length.

Parameters

**value double required**

Returns

`OdfLength`

Equals 2 overloads

`public bool Equals(OdfLength other)` [#](#method-equals-officeimo-opendocument-odflength)

[OdfLength.cs:67](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Values/OdfLength.cs#L67)

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

Parameters

**other OfficeIMO.OpenDocument.OdfLength 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)` [#](#method-equals-object)

[OdfLength.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Values/OdfLength.cs#L69)

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()` [#](#method-gethashcode)

[OdfLength.cs:71](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Values/OdfLength.cs#L71)

Returns the hash code for this instance.

Returns

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

`public static OdfLength Inches(double value)` [#](#method-inches-double)

[OdfLength.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Values/OdfLength.cs#L20)

Creates an inch length.

Parameters

**value double required**

Returns

`OdfLength`

`public static OdfLength Parse(string value)` [#](#method-parse-string)

[OdfLength.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Values/OdfLength.cs#L13)

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

Parameters

**value string required**

Returns

`OdfLength`

`public static OdfLength Points(double value)` [#](#method-points-double)

[OdfLength.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Values/OdfLength.cs#L22)

Creates a point length.

Parameters

**value double required**

Returns

`OdfLength`

`public double ToCentimeters()` [#](#method-tocentimeters)

[OdfLength.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Values/OdfLength.cs#L62)

Converts this absolute ODF length to centimeters.

Returns

`double`

`public double ToPoints()` [#](#method-topoints)

[OdfLength.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Values/OdfLength.cs#L26)

Converts this absolute ODF length to points.

Returns

`double`

`public override string ToString()` [#](#method-tostring)

[OdfLength.cs:65](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Values/OdfLength.cs#L65)

Returns the fully qualified type name of this instance.

Returns

`string` The fully qualified type name.

`public bool TryToPoints(out double points)` [#](#method-trytopoints-double)

[OdfLength.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Values/OdfLength.cs#L42)

Attempts to convert an absolute ODF length to points without throwing for relative or unsupported units.

Parameters

**points double required**

Returns

`bool`

## Inherited Methods

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

<!-- PowerForge markdown artifact sha256:E1672F34D038A79227879FA0A9205CD038A985A935747D8F55EB056F00995840 -->
