Proprietà DocumentBase.OMaths

Ottiene l'insieme degli oggetti OMath del documento.

Spazio dei nomi:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

Sintassi

'Dichiarazione
Public ReadOnly Property OMaths As OMaths
    Get
public OMaths OMaths { get; }

Valore proprietà

Tipo: Microsoft.Office.Interop.Word.OMaths
Insieme OMaths contenente gli oggetti OMath del documento.

Esempi

Nell'esempio di codice riportato di seguito si scorrono tutti gli oggetti OMath che esistono nel documento e viene impostata la giustificazione di ognuno allineata al centro. Viene richiesta l'aggiunta di almeno un oggetto OMath al documento, ad esempio un'equazione. Per utilizzare questo esempio, eseguirlo dalla classe ThisDocument in un progetto a livello di documento.

Private Sub GetOMathObjects()
    For Each mathObj As Word.OMath In Me.OMaths
        mathObj.Justification = Word.WdOMathJc.wdOMathJcCenter
    Next
End Sub
private void GetOMathObjects()
{            
    foreach (Word.OMath mathObj in this.OMaths)
    {
        mathObj.Justification = Word.WdOMathJc.wdOMathJcCenter;                
    }
}

Sicurezza di .NET Framework

Vedere anche

Riferimenti

DocumentBase Classe

Spazio dei nomi Microsoft.Office.Tools.Word