TextDmlEffect

TextDmlEffect enumeration

Effetto testo Dml per sequenze di testo.

public enum TextDmlEffect

I valori

NomeValoreDescrizione
Glow0Effetto bagliore, in cui un contorno sfocato colorato viene aggiunto all’esterno dei bordi dell’oggetto.
Fill1Effetto sovrapposizione riempimento.
Shadow2Effetto ombra.
Outline3Effetto contorno.
Effect3D4Effetto 3D.
Reflection5Effetto riflesso.

Esempi

Mostra come verificare se un’esecuzione visualizza un effetto testo DrawingML.

Document doc = new Document(MyDir + "DrawingML text effects.docx");

RunCollection runs = doc.FirstSection.Body.FirstParagraph.Runs;

Assert.True(runs[0].Font.HasDmlEffect(TextDmlEffect.Shadow));
Assert.True(runs[1].Font.HasDmlEffect(TextDmlEffect.Shadow));
Assert.True(runs[2].Font.HasDmlEffect(TextDmlEffect.Reflection));
Assert.True(runs[3].Font.HasDmlEffect(TextDmlEffect.Effect3D));
Assert.True(runs[4].Font.HasDmlEffect(TextDmlEffect.Fill));

Guarda anche