HtmlEditorCssFileCollection.Add(String) Method
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
Declaration
Parameters
Name | Type | Description |
---|---|---|
filePath | String | A string value that specifies the CSS file path. |
Returns
Type | Description |
---|---|
HtmlEditorCssFile | A HtmlEditorCssFile object representing the CSS file. |
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