OfficeMathJustification

OfficeMathJustification enumeration

Gibt die Ausrichtung der Gleichung an.

public enum OfficeMathJustification

Werte

NameWertBeschreibung
CenterGroup1Richtet mathematischen Text linksbündig zueinander aus und zentriert die Gruppe mathematischen Textes (den Mathematik-Absatz) in Bezug auf die Seite.
Center2Zentriert jede Instanz mathematischen Textes einzeln hinsichtlich der Ränder.
Left3Linksbündiger Mathe-Absatz.
Right4Rechtsbündiger Mathematik-Absatz.
Inline7Inline-Position von Math.
Default1StandardwertCenterGroup .

Beispiele

Zeigt, wie die Anzeigeformatierung für Office-Mathematik festgelegt wird.

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

OfficeMath officeMath = (OfficeMath)doc.GetChild(NodeType.OfficeMath, 0, true);

// OfficeMath-Knoten, die untergeordnete Knoten anderer OfficeMath-Knoten sind, sind immer inline.
// Der Knoten, mit dem wir arbeiten, ist der Basisknoten, dessen Standort und Anzeigetyp wir ändern möchten.
Assert.AreEqual(MathObjectType.OMathPara, officeMath.MathObjectType);
Assert.AreEqual(NodeType.OfficeMath, officeMath.NodeType);
Assert.AreEqual(officeMath.ParentNode, officeMath.ParentParagraph);

// Ändern Sie den Speicherort und den Anzeigetyp des OfficeMath-Knotens.
officeMath.DisplayType = OfficeMathDisplayType.Display;
officeMath.Justification = OfficeMathJustification.Left;

doc.Save(ArtifactsDir + "Shape.OfficeMath.docx");

Siehe auch