Editor for WinForms | ComponentOne
C1.Win.Editor.8 Assembly / C1.Win.Editor Namespace / C1Editor Class / CurrentTextStyleChanged Event

In This Topic
    CurrentTextStyleChanged Event
    In This Topic
    An event called each time the cursor position is changed by key or mouse action and reports the style of the text at the new cursor position.
    Syntax
    'Declaration
     
    Public Event CurrentTextStyleChanged As C1Editor.TextStyleEventHandler
    public event C1Editor.TextStyleEventHandler CurrentTextStyleChanged
    Event Data

    The event handler receives an argument of type TextStyleEventArgs containing data related to this event. The following TextStyleEventArgs properties provide information specific to this event.

    PropertyDescription
    The Alignment property indicates the HorizontalAlignment of text.  
    The BackgroundColor property indicates the background or highlight color of text.  
    The Bold property indicates whether text is bold.  
    The FontFamilyName property indicates the font family name.  
    The FontSize property indicates the font size in points.  
    The FontTyle property indicates the font style attributes (e.g.: bold, italics, underline, etc.).  
    The FontWeight property indicates the font weight (default normal = 400).  
    The ForeColor property indicates the foreground color of text.  
    The Italic property indicates whether text is displayed with italics.  
    The StrikeThrough property indicates whether text is displayed with strike through.  
    The SubScript property indicates whether the text is displayed as subscript.  
    The SuperScript property indicates whether the text is displayed as superscript.  
    The Underline property indicates whether the text is displayed as underlined.  
    See Also