AsOfficeMath

FieldEQ.AsOfficeMath method

Restituisce l’oggetto Office Math corrispondente al campo EQ.

public OfficeMath AsOfficeMath()

Valore di ritorno

Restituiscenull se il codice campo è vuoto o non valido, altrimenti unOfficeMath istanza.

Esempi

Mostra come sostituire il campo EQ con 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");

Guarda anche