Hi I have a paragraph style defined as
new StyleDefinition
{
DisplayName = "Quotation 1",
Name = "Quotation1",
NextStyleName = "Normal",
Type = StyleType.Paragraph,
IsCustom = false,
IsDefault = false,
IsPrimary = true,
UIPriority = 4,
ParagraphProperties =
{
LineSpacing = 1.15,
SpacingAfter = 56.0/3.0
},
SpanProperties =
{
FontFamily = new FontFamily("Calibri"),
FontSize = 56 / 3.0,
FontStyle = FontStyles.Normal,
FontWeight = FontWeights.Bold,
ForeColor = Color.FromRgb(193, 43, 103),
}
};
I have a rad document with multiple paragraphs. If the paragraphs have a default styles I can apply my style to one of them and the document looks like expected. The chosen paragraph is pink and bold.
Unfortunately when the user of the application selects some words in the paragraph make them bold and then not bold again it creates a new span which has exectly the same properties including FontWeight Normal, but after I apply my style only the spans that weren't changed become pink bold while the changed remains Normal.
Is there a way to force span style to the whole paragraph?