Editor for WinForms | ComponentOne
C1.Win.C1Editor.4.8 Assembly / C1.Win.C1Editor Namespace / C1TextRange Class / ClearFormatting Method
Example

In This Topic
    ClearFormatting Method
    In This Topic
    Removes text and paragraph formatting from the text range.
    Syntax
    'Declaration
     
    Public Sub ClearFormatting() 
    public void ClearFormatting()
    Example
    The example shows how to clear any formatting of selected text.
    private void button1_Click(object sender, EventArgs e)
    {
       editor.Selection.ClearFormatting();
    }
    See Also