[]
        
(Showing Draft Content)

C1.Win.Editor.C1Editor.SetCssStyleAtSelectionAsync

SetCssStyleAtSelectionAsync Method

SetCssStyleAtSelectionAsync(string, string, string)

Sets CSS style to the selected tag asynchronously.

Declaration
public Task SetCssStyleAtSelectionAsync(string className, string cssStyleInfo, string tag = null)
Parameters
Type Name Description
string className

A css class name to use for the selected tag.

string 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.

string tag

Tag to which the style should be applied. If 'null' or Empty is applied to the first tag at the selection.

Returns
Type Description
Task