HtmlEditorCssFileCollection.Add() Method
Creates a new HtmlEditorCssFile object and adds it to the end of the HtmlEditorCssFileCollection object.
Namespace: DevExpress.Web.ASPxHtmlEditor
Assembly: DevExpress.Web.ASPxHtmlEditor.v23.2.dll
NuGet Package: DevExpress.Web
Declaration
Returns
Type | Description |
---|---|
HtmlEditorCssFile | A HtmlEditorCssFile object representing the newly created CSS file. |
Remarks
Use the Add method to create a new HtmlEditorCssFile object with the default settings and add it to the HtmlEditorCssFileCollection object. You can modify properties of the obtained object to control the settings of the added CSS file.
Example
protected void Page_Load(object sender, EventArgs e){
ASPxHtmlEditor1.CssFiles.Add().FilePath = "~/MyStyles/Style1.css";
}
See Also