Làm việc với OfficeMath

Contents
[ ]

Giờ đây, việc làm việc với Đối tượng Loại OfficeMath thậm chí còn thuận tiện hơn. Trong Aspose.Words, khách hàng có thể dễ dàng Căn chỉnh và cũng có thể quản lý xem phương trình được hiển thị nội tuyến hay trong một dòng riêng biệt. Hơn thế nữa, với sự sẵn có của MathObjectType; các điều khiển hữu ích có thể được thực hiện bằng cách sử dụng đối tượng ma trận này.

Các ví dụ mã sau đây cho thấy cách sử dụng các thuộc tính này:

# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Python-via-.NET
doc = aw.Document(docs_base.my_dir + "Office math.docx")
officeMath = doc.get_child(aw.NodeType.OFFICE_MATH, 0, True).as_office_math()
# OfficeMath display type represents whether an equation is displayed inline with the text or displayed on its line.
officeMath.display_type = aw.math.OfficeMathDisplayType.DISPLAY
officeMath.justification = aw.math.OfficeMathJustification.LEFT
doc.save(docs_base.artifacts_dir + "WorkingWithOfficeMath.math_equations.docx")