Justification
İçindekiler
[
Saklamak
]OfficeMath.Justification property
Office Math gerekçesini alır/ayarlar.
public OfficeMathJustification Justification { get; set; }
Notlar
Gerekçelendirme, Office Math görüntüleme biçimi türüne ayarlanamazInline.
Satır içi hizalama, Office Math görüntüleme biçimi türüne ayarlanamazDisplay.
Karşılık gelenDisplayType
Office Math gerekçelendirmesi ayarlanmadan önce ayarlanması gerekir.
Örnekler
Ofis matematik görüntüleme biçimlendirmesinin nasıl ayarlanacağını gösterir.
Document doc = new Document(MyDir + "Office math.docx");
OfficeMath officeMath = (OfficeMath)doc.GetChild(NodeType.OfficeMath, 0, true);
// Diğer OfficeMath düğümlerinin çocuğu olan OfficeMath düğümleri her zaman satır içidir.
// Üzerinde çalıştığımız düğüm, konumunu ve görüntüleme türünü değiştirecek temel düğümdür.
Assert.AreEqual(MathObjectType.OMathPara, officeMath.MathObjectType);
Assert.AreEqual(NodeType.OfficeMath, officeMath.NodeType);
Assert.AreEqual(officeMath.ParentNode, officeMath.ParentParagraph);
// OfficeMath düğümünün konumunu ve görüntüleme türünü değiştirin.
officeMath.DisplayType = OfficeMathDisplayType.Display;
officeMath.Justification = OfficeMathJustification.Left;
doc.Save(ArtifactsDir + "Shape.OfficeMath.docx");
Ayrıca bakınız
- enum OfficeMathJustification
- class OfficeMath
- ad alanı Aspose.Words.Math
- toplantı Aspose.Words