HtmlEditorCssFileCollection.Add() Method
In This Article
Creates a new HtmlEditorCssFile object and adds it to the end of the HtmlEditorCssFileCollection object.
Namespace: DevExpress.Web.ASPxHtmlEditor
Assembly: DevExpress.Web.ASPxHtmlEditor.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public HtmlEditorCssFile Add()
#Returns
Type | Description |
---|---|
Html |
A Html |
#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