OdtSaveOptionsMeasureUnit Property |
Allows to specify units of measure to apply to document content.
The default value is
Centimeters
Namespace:
Aspose.Words.Saving
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntaxpublic OdtSaveMeasureUnit MeasureUnit { get; set; }
Public Property MeasureUnit As OdtSaveMeasureUnit
Get
Set
public:
property OdtSaveMeasureUnit MeasureUnit {
OdtSaveMeasureUnit get ();
void set (OdtSaveMeasureUnit value);
}
member MeasureUnit : OdtSaveMeasureUnit with get, set
Property Value
Type:
OdtSaveMeasureUnit
Remarks
Open Office uses centimeters when specifying lengths, widths and other measurable formatting and
content properties in documents whereas MS Office uses inches.
ExamplesShows how to work with units of measure of document content.
Document doc = new Document(MyDir + "Rendering.docx");
OdtSaveOptions saveOptions = new OdtSaveOptions
{
MeasureUnit = OdtSaveMeasureUnit.Inches,
IsStrictSchema11 = true
};
doc.Save(ArtifactsDir + "OdtSaveOptions.MeasureUnit.odt", saveOptions);
See Also