Yansıma Efekti Ekle

Yansıma Efekti ile Metin Oluşturma

Yansıma etkisi, metnin altına bir yansıyan görüntü ekleyerek cilalı ve modern bir görünüm oluşturur. In IronWord, this effect is applied through the ReflectionEffect property of a TextEffect object, which can be customized or used with default settings.

To implement a reflection effect, create a TextStyle and configure its TextEffect property with a Reflection instance. The Reflection class supports default initialization, which applies standard reflection parameters suitable for most use cases. Özel yansımalar için, mesafe, bulanıklık ve şeffaflık gibi özellikler görünümleri ince ayarlamak için ayarlanabilir.

After defining the text style, create a Run containing your TextContent and assign the configured style to the run. Use AddChild to add the run to a paragraph, maintaining the proper document hierarchy of Document → Paragraph → Run → TextContent. Son olarak, yansıma efektini uygulamak için paragrafı belgeye ekleyin.

Kod Açıklaması

Hadi yeni bir Word belgesi oluşturalım ve ona yansıma efekti olan metin ekleyelim. Initially, a new WordDocument object named doc is created. A TextStyle object is then instantiated and configured to include a reflection effect by setting its TextEffect property to a new Reflection object.

To add the styled text with the reflection effect, a Paragraph is created, then a Run object is created containing TextContent with "Hello World". The TextStyle is assigned to the Run, applying the reflection effect. The Run is added to the Paragraph using AddChild, and the Paragraph is added to the document. Bu, belge sıralamasını takip eder: Document → Paragraph → Run → TextContent. Son olarak, belge kaydedilir.

IronWord eğitimlerinde Belge Öğelerini Keşfedin.

Başlamaya Hazır mısınız?
Nuget İndirmeler 44,829 | Sürüm: 2026.5 just released
Still Scrolling Icon

Hâlâ Kaydırıyor Musunuz?

Hızlıca kanıt ister misiniz? PM > Install-Package IronWord
bir örnek çalıştırın verilerinizi bir Word belgesine dönüştürün.