[]
        
(Showing Draft Content)

C1.Win.Editor.C1Editor.SetCssStyleAtSelection

SetCssStyleAtSelection Method

SetCssStyleAtSelection(string, string, string)

Sets CSS style to the selected tag.

Declaration
[Obsolete("This method is deprecated, please, use SetCssStyleAtSelectionAsync instead.")]
public void SetCssStyleAtSelection(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.