HtmlEditorPlaceholdersSettings.StartMark Property

Gets or sets the character(s) displayed at the beginning of the placeholders.

Namespace: DevExpress.Web.ASPxHtmlEditor

Assembly: DevExpress.Web.ASPxHtmlEditor.v19.2.dll


public string StartMark { get; set; }
Public Property StartMark As String

Property Value

Type Default Description


A string value that specifies the starting character(s) of the placeholders.


By default, placeholders are surrounded with curly braces {}. Use the StartMark property to specify a custom character(s) that will be used as the beginning of the placeholder instead of default left curly brace ({). To specify which character(s) should be used instead of the right curly brace (}), use the HtmlEditorPlaceholdersSettings.EndMark property.

To replace placeholders with the required values, use the client-side ASPxClientHtmlEditor.ReplacePlaceholders or server-side ASPxHtmlEditor.ReplacePlaceholders method.

The collection of placeholders available for end-users is accessed by the ASPxHtmlEditor.Placeholders property.


This example illustrates how to use the HtmlEditorPlaceholdersSettings.StartMark and HtmlEditorPlaceholdersSettings.EndMark properties to specify custom characters that will be displayed at the beginning and at the end of placeholders, respectively.

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)
        if (!IsPostBack)
            ASPxHtmlEditor1.Html = File.ReadAllText(Server.MapPath("~/Content.html"));
See Also