AsOfficeMath

FieldEQ.AsOfficeMath method

L’objet mathématique du bureau des retours correspond au champ EQ.

public OfficeMath AsOfficeMath()

Return_Value

Retoursnul si le code du champ est vide ou invalide, sinon unOfficeMath instance.

Exemples

Montre comment remplacer le champ EQ par Office Math.

Document doc = new Document(MyDir + "Field sample - EQ.docx");
FieldEQ fieldEQ = doc.Range.Fields.OfType<FieldEQ>().First();

OfficeMath officeMath = fieldEQ.AsOfficeMath();

fieldEQ.Start.ParentNode.InsertBefore(officeMath, fieldEQ.Start);
fieldEQ.Remove();

doc.Save(ArtifactsDir + "Field.EQAsOfficeMath.docx");

Voir également