OfficeMathDisplayType

OfficeMathDisplayType enumeration

Especifica el tipo de formato de visualización de la ecuación.

public enum OfficeMathDisplayType

Valores

NombreValorDescripción
Display0La función Office Math se muestra en su propia línea.
Inline1La función Office Math se muestra en línea con el texto.

Ejemplos

Muestra cómo configurar el formato de visualización de matemáticas de oficina.

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

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

// Los nodos OfficeMath que son hijos de otros nodos OfficeMath siempre están en línea.
//El nodo con el que estamos trabajando es el nodo base para cambiar su ubicación y tipo de visualización.
Assert.AreEqual(MathObjectType.OMathPara, officeMath.MathObjectType);
Assert.AreEqual(NodeType.OfficeMath, officeMath.NodeType);
Assert.AreEqual(officeMath.ParentNode, officeMath.ParentParagraph);

// Cambia la ubicación y el tipo de visualización del nodo OfficeMath.
officeMath.DisplayType = OfficeMathDisplayType.Display;
officeMath.Justification = OfficeMathJustification.Left;

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

Ver también