Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

C# - in RichTextBox bei einem Bullet den Zeilenabstand ändern

Empfohlene Antworten

Veröffentlicht

Hallo zusammen,

ich habe ein Programm in C# programmiert mit einer Richtextbox.

Wenn ich ein Bullet einfüge klappt das wunderbar.

Mit

rtbInhalt.BulletIndent = 30;

kann ich zB den Einzug bestimmen, also den Abstand zwischen Punkt und Textbeginn.

Wie kann ich denn den Zeilenabstand zwischen mehreren Bullets untereinander angeben?

  • Bsp 1
  • Bsp 2

Also der Abstand zwischen Bsp 1 und Bsp 2.

Wäre klasse wenn mir da jemand weiterhelfen könnte.

Gruss

Hallo,

ich hätte jetzt spontan gesagt "margin" oder "padding", aber das gibts (soweit ich das ma schnell gegooglet hab) nicht...

Für den Zeilenabstand wäre es vlt eine (unsaubere) möglichkeit, einfach Zeilen unterschiedlicher Schriftgröße einzufügen.

Statt 1/2 Zeile platzlassen einfach eine Zeile (\n) mit Schriftgröße 6 (statt z.b.normal 12) einfügen.

Eine sauberere Lösung hab ich leider auch ned parat

  • Autor

Hi, hab jetzt ne Lösung gefunden.

Wenn man sich den RTF Text anguckt, also mal mit nem Editor öffnet, dann sieht man etwas in der Art:

{\rtf1\ansi\ansicpg1252\deff0\deflang1031{\fonttbl{\f0\fnil\fcharset0 Futura Md BT;}{\f1\fnil\fcharset0 Microsoft Sans Serif;}}

\viewkind4\uc1\pard\b\i\f0\fs28 DEUTSCH\b0\i0\f1\fs17\par

\ansi\ansicpg1252\deff0\deflang1031{\fonttbl{\f0\fswiss\fprq2\fcharset0 Futura Md BT;}{\f1\fnil\fcharset0 Microsoft Sans Serif;}}

\pard\f0\fs20 BETRIEBSANLEITUNG\b\caps  f\'fcr\b0\caps0\f1\fs17\par

\ansi\ansicpg1252\deff0\deflang1031{\fonttbl{\f0\fswiss\fprq2\fcharset0 Futura Md BT;}{\f1\fnil\fcharset0 Microsoft Sans Serif;}}

wenn man hier jetzt "\fs17\par" durch "\fs14\par" ersetzt, dann hat man den Zeilenabstand verkleinert.

So klappt es auf jedenfall bei mir :)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.