OfficeMathDisplayType

OfficeMathDisplayType enumeration

Spécifie le type de format d’affichage de l’équation.

public enum OfficeMathDisplayType

Valeurs

NomÉvaluerLa description
Display0Le bureau mathématique est affiché sur sa propre ligne.
Inline1Le bureau mathématique est affiché en ligne avec le texte.

Exemples

Montre comment définir la mise en forme de l’affichage mathématique du bureau.

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

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

// Les nœuds OfficeMath qui sont des enfants d'autres nœuds OfficeMath sont toujours en ligne.
// Le nœud avec lequel nous travaillons est le nœud de base pour modifier son emplacement et son type d'affichage.
Assert.AreEqual(MathObjectType.OMathPara, officeMath.MathObjectType);
Assert.AreEqual(NodeType.OfficeMath, officeMath.NodeType);
Assert.AreEqual(officeMath.ParentNode, officeMath.ParentParagraph);

// Modifiez l'emplacement et le type d'affichage du nœud OfficeMath.
officeMath.DisplayType = OfficeMathDisplayType.Display;
officeMath.Justification = OfficeMathJustification.Left;

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

Voir également