GetEffective

Método PortionFormat.GetEffective

Obtiene datos de formato de porción efectiva con la herencia aplicada.

public IPortionFormatEffectiveData GetEffective()  

Valor de retorno

Un IPortionFormatEffectiveData.

Ejemplos

Este ejemplo demuestra cómo obtener algunas propiedades de formato de porción efectiva.

[C#]  
using (Presentation pres = new Presentation(@"MyPresentation.pptx"))  
{  
	IAutoShape shape = pres.Slides[0].Shapes[0] as IAutoShape;  
	IPortionFormatEffectiveData effectivePortionFormat = shape.TextFrame.Paragraphs[0].Portions[0].PortionFormat.GetEffective();  
  
	Console.WriteLine("Fuente latina: " + effectivePortionFormat.LatinFont.FontName);  
	Console.WriteLine("Altura de fuente: " + effectivePortionFormat.FontHeight);  
	Console.WriteLine("Tipo de relleno: " + effectivePortionFormat.FillFormat.FillType);  
}  

Véase también