我们很高兴地宣布发布Spire.Doc for .NET 14.2.7。本版本支持在表格中隐藏行,并包含若干调整和错误修复,以增强可用性和性能。
新功能:
- 新增支持隐藏表格行。
Spire.Doc.Document doc = new Spire.Doc.Document();
doc.LoadFromFile(inputFile1);TableRow row = doc.FirstSection.Body.Tables[0].FirstRow;
row.Hidden = true;doc.SaveToFile(outputDocxFile1);doc = new Document(outputDocxFile1);
row = doc.FirstSection.Body.Tables[0].FirstRow;
Assert.True(row.Hidden);
foreach (TableCell cell in row.Cells)
{
foreach (Paragraph para in cell.Paragraphs)
{
foreach (ParagraphBase run in para.ChildObjects)
{
if (run is TextRange || run is Break || run is Symbol)
{
Assert.True(run.CharacterFormat.Hidden);
}
}
}
}
调整:
- 移除了模型对象的序列化和反序列化功能,包含以下命名空间和接口:
- 收回接口 IShapeAttrSource。
- 收回ShapeBase 以下公开方法:
Spire.Doc.Interface
IDocumentSerializable
IXDLSAttributeReader
IXDLSAttributeWriter
IXDLSContentReader
IXDLSContentWriter
IXDLSFactory
IXDLSSerializableCollection
Spire.Doc.Documents.XML
DocumentSerializable
DocumentSerializableCollection
XDLSHolder
XDLSReader
public object GetDirectShapeAttr(int key)
public object FetchInheritedShapeAttr(int key)
public object FetchShapeAttr(int key)
public void SetShapeAttr(int key, object value)
public void RemoveShapeAttr(int key)
public object GetDirectShapeAttribute(int key)
public object GetInheritedShapeAttribute(int key)
public object GetShapeAttribute(int key)
public void SetShapeAttribute(int key, object value)
public void RemoveShapeAttribute(int key)
public bool HasKey(int key)
问题修复:
- 修复了 Word 转 PDF 效果不一致的问题。
获取 Spire.Doc 14.2.7,请点击以下链接:







