Skip to main content

HtmlEditorPlaceholdersSettings.EndMark Property

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

Namespace: DevExpress.Web.ASPxHtmlEditor

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

NuGet Package: DevExpress.Web

#Declaration

[DefaultValue("}")]
public string EndMark { get; set; }

#Property Value

Type Default Description
String "}"

A string value that specifies the character(s) displayed at the end of the placeholders.

#Property Paths

You can access this nested property as listed below:

Library Object Type Path to EndMark
ASP.NET MVC Extensions HtmlEditorSettings
ASP.NET Web Forms Controls ASPxHtmlEditor

#Remarks

By default, placeholders are surrounded with curly braces {}. Use the HtmlEditorPlaceholdersSettings.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 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.

#Example

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.

<dx:ASPxHtmlEditor ID="ASPxHtmlEditor1" runat="server">
    <SettingsPlaceholders StartMark="[%" EndMark="%]" />
    <Placeholders>
        <dx:HtmlEditorPlaceholderItem Value="FirstName" />
        <dx:HtmlEditorPlaceholderItem Value="Date" />
    </Placeholders>
</dx:ASPxHtmlEditor>

Start and End Marks

See Also