Click or drag to resize

OdtSaveMeasureUnit Enumeration

Specified units of measure to apply to measurable document content such as shape, widths and other during saving.

Namespace:  Aspose.Words.Saving
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public enum OdtSaveMeasureUnit
Members
  Member nameValueDescription
Centimeters0 Specifies that the document content is saved using centimeters.
Inches1 Specifies that the document content is saved using inches.
Examples
Shows how to work with units of measure of document content.
Document doc = new Document(MyDir + "Rendering.docx");

// Open Office uses centimeters, MS Office uses inches
OdtSaveOptions saveOptions = new OdtSaveOptions
{
    MeasureUnit = OdtSaveMeasureUnit.Inches,
    IsStrictSchema11 = true
};

doc.Save(ArtifactsDir + "OdtSaveOptions.MeasureUnit.odt", saveOptions);
See Also