RichTextBox Selection FontSize
Ich habe das Problem das der gesamte Text in der RTB auf den neuen Wert des FontSize gesetzt wird, und nicht nur der makierte Text.
Wenn ich das mit FontStyles (Italic) verwende funktioniert das wunderbar , wieso bei FontSize nicht?
private void Button_Click_4(object sender, RoutedEventArgs e)
{
if (rtb2 != null)
{
rtb2.Selection.ApplyPropertyValue(Run.FontSizeProperty, FontSize = 24);
}
}
Wenn ich das mit FontStyles (Italic) verwende funktioniert das wunderbar , wieso bei FontSize nicht?
Please also mark the comments that contributed to the solution of the article
Content-Key: 74167427517
Url: https://administrator.de/contentid/74167427517
Printed on: July 27, 2024 at 12:07 o'clock
1 Comment