Editor for WinForms | ComponentOne
C1.Win.Editor.8 Assembly / C1.Win.Editor Namespace / C1Editor Class / SetCssStyleAtSelectionAsync Method
A css class name to use for the selected tag.
Specifies a css style definition for the tag. If null, then the classname css style is used. If both classname and cssTyleInfo are specified, the css class is defined.
Tag to which the style should be applied. If 'null' or Empty is applied to the first tag at the selection.

In This Topic
    SetCssStyleAtSelectionAsync Method
    In This Topic
    Sets CSS style to the selected tag asynchronously.
    Syntax
    'Declaration
     
    Public Function SetCssStyleAtSelectionAsync( _
       ByVal className As System.String, _
       ByVal cssStyleInfo As System.String, _
       Optional ByVal tag As System.String _
    ) As System.Threading.Tasks.Task
    public System.Threading.Tasks.Task SetCssStyleAtSelectionAsync( 
       System.string className,
       System.string cssStyleInfo,
       System.string tag
    )

    Parameters

    className
    A css class name to use for the selected tag.
    cssStyleInfo
    Specifies a css style definition for the tag. If null, then the classname css style is used. If both classname and cssTyleInfo are specified, the css class is defined.
    tag
    Tag to which the style should be applied. If 'null' or Empty is applied to the first tag at the selection.
    See Also