GetEffective
EffectFormat.GetEffective method
Ruft effektive Effektformatierungsdaten mit angewendeter Vererbung ab.
public IEffectFormatEffectiveData GetEffective()
Rückgabewert
EINIEffectFormatEffectiveData
.
Beispiele
Dieses Beispiel demonstriert das Abrufen einiger effektiver Effekteigenschaften der Form.
[C#]
using (Presentation pres = new Presentation(@"MyPresentation.pptx"))
{
IEffectFormatEffectiveData effectiveEffectFormat = pres.Slides[0].Shapes[0].EffectFormat.GetEffective();
if (effectiveEffectFormat.IsNoEffects)
{
Console.WriteLine("The shape has not effects applied.");
}
else
{
if (effectiveEffectFormat.BlurEffect != null)
Console.WriteLine("Blur effect radius: " + effectiveEffectFormat.BlurEffect.Radius);
if (effectiveEffectFormat.FillOverlayEffect != null)
Console.WriteLine("Fill overlay effect fill type: " + effectiveEffectFormat.FillOverlayEffect.FillFormat.FillType);
if (effectiveEffectFormat.GlowEffect != null)
Console.WriteLine("Glow effect color: " + effectiveEffectFormat.GlowEffect.Color);
if (effectiveEffectFormat.InnerShadowEffect != null)
Console.WriteLine("Inner shadow effect shadow color: " + effectiveEffectFormat.InnerShadowEffect.ShadowColor);
if (effectiveEffectFormat.OuterShadowEffect != null)
Console.WriteLine("Outer shadow effect shadow color: " + effectiveEffectFormat.OuterShadowEffect.ShadowColor);
if (effectiveEffectFormat.PresetShadowEffect != null)
Console.WriteLine("Preset shadow effect shadow color: " + effectiveEffectFormat.PresetShadowEffect.ShadowColor);
if (effectiveEffectFormat.ReflectionEffect != null)
Console.WriteLine("Reflection effect distance: " + effectiveEffectFormat.ReflectionEffect.Distance);
if (effectiveEffectFormat.SoftEdgeEffect != null)
Console.WriteLine("Soft edge effect radius: " + effectiveEffectFormat.SoftEdgeEffect.Radius);
}
}
Siehe auch
- interface IEffectFormatEffectiveData
- class EffectFormat
- namensraum Aspose.Slides
- Montage Aspose.Slides