Glüheffekt hinzufügen Glüheffekt zum Text hinzufügen Applying a glow effect to text in IronWord is accomplished by configuring the TextEffect property of a TextStyle object. Der Glüheffekt erzeugt einen leuchtenden Rahmen um den Text, wobei Farbe und Radius individuell anpassbar sind, um das visuelle Erscheinungsbild zu steuern. To create a glow effect, instantiate a TextStyle and assign a TextEffect object with a configured Glow instance. The Glow object accepts properties like GlowColor to specify the color of the glow and GlowRadius to control the spread of the effect. Höhere Radiuswerte erzeugen diffusere Leuchteffekte, während niedrigere Werte engere Lichthöfe um den Text herum erzeugen. After configuring the text style, create a Run object containing the desired TextContent and assign the configured style to the Run. Use AddChild to add the styled run to a paragraph, then add the paragraph to the document. Dies folgt der Dokumenthierarchie: Dokument → Absatz → Textabschnitt → Textinhalt. Code Erklärung Der obige Codeausschnitt zeigt, wie man ein neues Word-Dokument erstellt und einen Textstil mit einem Leuchteffekt anwendet. First, a new Word document is instantiated and stored in the variable doc. Then, a new TextStyle object named textStyle is created. This text style is configured to include a glow effect by initializing a TextEffect object with specific settings. To add the styled text with the glow effect, a Paragraph is created, then a Run object is created containing TextContent with "Hello World". The textStyle is assigned to the Run, which applies the glow effect. The Run is added to the Paragraph using AddChild, and finally the Paragraph is added to the document. Dieser mehrstufige Ansatz folgt der Dokumenthierarchie: Dokument → Absatz → Textabschnitt → Textinhalt. Schließlich wird das Word-Dokument als neue Datei exportiert. Für weitere Beispiele und Demonstrationen navigieren Sie bitte zu folgendem Artikel: Wie man einen Leuchteffekt zu Text hinzufügt. Erfahren Sie mehr über Dokumentelemente in IronWord Verwandte Doku-Links Auf GitHub ansehen Verwandtes Tutorial Verwandte Anleitung Klassendokumentation IronWord DLL herunterladen Ein Problem auf dieser Seite melden Bereit anzufangen? Nuget Downloads 36,204 | Version: 2026.3 gerade veröffentlicht Gratis testen Kostenloser NuGet-Download Gesamtanzahl der Downloads: 36,204 Lizenzen anzeigen Scrollst du immer noch? Sie brauchen schnell einen Beweis? PM > Install-Package IronWord Führen Sie ein Beispiel aus und sehen Sie zu, wie aus Ihren Daten ein Word-Dokument wird. Kostenloser NuGet-Download Gesamtanzahl der Downloads: 36,204 Lizenzen anzeigen
In einer Live-Umgebung testen Testen Sie ohne Wasserzeichen in der Produktion.Funktioniert dort, wo Sie es brauchen.
Voll funktionsfähiges Produkt Erhalten Sie 30 Tage voll funktionsfähiges Produkt.In wenigen Minuten einsatzbereit.
24/5 technischer Support Voller Zugriff auf unser Support-Engineering-Team während Ihrer Produktprobe
Alle Ihre Fragen werden beantwortet, um sicherzustellen, dass Sie alle Informationen erhalten, die Sie benötigen. (Völlig unverbindlich.)