Spire.Doc 6.0 made great changes for shape objects and WordXML documents

We are pleased to announce a new release version of Spire.Doc 6.0 is available today. In this version, we made great changes for operating the shape object on word documents. We also do some changes for background and table setting. At the same time, we canceled some unreasonable attribute. View the details as below:
New Features:
DocOleObject, DocPicture and TextBox could inherit from ShapeObject.
public class DocOleObject : ShapeObject public class DocPicture : ShapeObject, IPicture public class TextBox : ShapeObject, ITextBox
DocOleObject implements the interface IDocOleObject.
Table
- It need to set both the Width and WidthType when setting the width for Table or TableCell
- The method table.AutoFitBehavior() is changed to the method table.AutoFit();
Adjusts the values in enum TextDirection.
In previous versions, it means text direction, but now it means the row direction. For example, when you set TopToBottom, it means writing row by row (in other words, top to bottom), and the direction TopToBottom is the default value.
//Summary: //Specifies that text in the parent object shall flow from left to right horizontally, //then top to bottom vertically on the page. This means that horizontal lines //are filled before the text expands vertically. TopToBottom = 0;
Publish the property ShapeObject.CharacterFormat.
Background
- Inheritance relationship of BackgroundGradient changed from DocumentSerializable to VMLFill.
- Cancel the "set" attribute for Background.Gradient.
- Cancel the constructor for BackgroundGradient.
public class BackgroundGradient : VMLFill
public BackgroundGradient Gradient { get; }
Cancel the "set" attribute for the format of TextBox.
public TextBoxFormat Format { get; }