Resets one or more of the style's attributes to its default value which is the same value as defined for the surrounding paragraph. Text formatted through an inline style has all the attributes defined through the surrounding paragraph except the attributes explicitly defined through the inline style.


public void ResetToParagraph(InlineStyle.Attributes attributes);
Public Sub ResetToParagraph(ByVal attributes As InlineStyle.Attributes)


Parameter Description
attributes Specifies one or more attributes to reset. It can be a bitwise combination of values from the Attributes enumeration contained in this class.


The following example shows how to use the 'ResetToParagraph' method. Here it used to set the 'FontSize', 'ForeColor' and 'Italic' attributes to the same value as defined for the surrounding paragraph.

textControl1.Text = "TX Text Control";

TXTextControl.InlineStyle inline = new TXTextControl.InlineStyle("ArialBold16");

inline.ResetToParagraph(TXTextControl.InlineStyle.Attributes.FontSize & TXTextControl.InlineStyle.Attributes.ForeColor & TXTextControl.InlineStyle.Attributes.Italic);

textControl1.Text = "TX Text Control"

Dim inline As TXTextControl.InlineStyle = New TXTextControl.InlineStyle("ArialBold16")

inline.ResetToParagraph(TXTextControl.InlineStyle.Attributes.FontSize And TXTextControl.InlineStyle.Attributes.ForeColor And TXTextControl.InlineStyle.Attributes.Italic)