HtmlEditorCssFileCollection.Add(String) Method
In This Article
Adds a new CSS file to the end of the HtmlEditorCssFileCollection object with specific CSS file path.
Namespace: DevExpress.Web.ASPxHtmlEditor
Assembly: DevExpress.Web.ASPxHtmlEditor.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public HtmlEditorCssFile Add(
string filePath
)
#Parameters
Name | Type | Description |
---|---|---|
file |
String | A string value that specifies the CSS file path. |
#Returns
Type | Description |
---|---|
Html |
A Html |
#Remarks
Use the Add method to add a HtmlEditorCssFile object with specified file path to the HtmlEditorCssFileCollection object.
#Example
protected void Page_Load(object sender, EventArgs e){
ASPxHtmlEditor1.CssFiles.Add("~/MyStyles/Style1.css");
}
See Also