Posted 18 Jan 2011 Link to this post
var currentAlignment = richTextBox.Selection.GetPropertyValue(Inline.BaselineAlignmentProperty);
BaselineAlignment newAlignment = ((BaselineAlignment)currentAlignment == BaselineAlignment.Superscript) ? BaselineAlignment.Baseline : BaselineAlignment.Superscript;
richTextBox.Selection.ApplyPropertyValue(Inline.BaselineAlignmentProperty, newAlignment);
richTextBox.Selection.ApplyPropertyValue(Inline.FontSizeProperty, (
double
)8);
Posted 20 Jan 2011 Link to this post
this
.radRichTextBox.ChangeBaselineAlignment(BaselineAlignment.Subscript);