MeasurementUnit

RevisionOptions.MeasurementUnit property

允许指定修订注释的测量单位。 默认值为Centimeters

public MeasurementUnits MeasurementUnit { get; set; }

例子

展示如何使保存的文档符合旧的 ODT 模式。

Document doc = new Document(MyDir + "Rendering.docx");

OdtSaveOptions saveOptions = new OdtSaveOptions
{
    MeasureUnit = OdtSaveMeasureUnit.Centimeters,
    IsStrictSchema11 = exportToOdt11Specs
};

doc.Save(ArtifactsDir + "OdtSaveOptions.Odt11Schema.odt", saveOptions);

也可以看看