Back to Devexpress

ASPxCloudControl.ItemEndText Property

aspnet-devexpress-dot-web-dot-aspxcloudcontrol-0390fdd5.md

latest3.9 KB
Original Source

ASPxCloudControl.ItemEndText Property

SECURITY-RELATED CONSIDERATIONS

Setting this property to values from an untrusted source may introduce security-related issues, since the property value is not encoded and is rendered as HTML markup. Call the HttpUtility.HtmlEncode method to encode the value.

Review the following help topic to better protect websites from cross-site scripting (XSS) attacks: HTML Encoding.

Gets or sets an item’s closing text.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue("")]
public string ItemEndText { get; set; }
vb
<DefaultValue("")>
Public Property ItemEndText As String

Property Value

TypeDefaultDescription
StringString.Empty

A string value that specifies an item’s closing text.

|

Remarks

The ItemEndText property specifies the text string with which an item’s text ends. To specify an item’s opening text, use the ASPxCloudControl.ItemBeginText property.

Example

The following sample code demonstrates how to customize the appearance of the ASPxCloudControl control.

csharp
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register assembly="DevExpress.Web.v8.3, Version=8.3.2.0, Culture=neutral, 
PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxCloudControl" tagprefix="dxcc" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
    protected void Page_Load(object sender, EventArgs e) {

        ASPxCloudControl ASPxCloudControl1 = new ASPxCloudControl();
        CloudControlItem Item1 = new CloudControlItem("Home", 20, "/home");
        CloudControlItem Item2 = new CloudControlItem("Products", 5, "/products");
        CloudControlItem Item3 = new CloudControlItem("Contacts", 10, "/contacts");
        ASPxCloudControl1.Items.Add(Item1);
        ASPxCloudControl1.Items.Add(Item2);
        ASPxCloudControl1.Items.Add(Item3);
        Page.Form.Controls.Add(ASPxCloudControl1);

        ASPxCloudControl1.ItemBeginText = "{";
        ASPxCloudControl1.ItemEndText = "}";
        ASPxCloudControl1.ItemBeginEndTextColor = System.Drawing.Color.Brown;

        ASPxCloudControl1.MaxColor = System.Drawing.Color.Red;
        ASPxCloudControl1.MinColor = System.Drawing.Color.Green;

        ASPxCloudControl1.LinkStyle.HoverColor = System.Drawing.Color.Pink;
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>

    </div>
    </form>
</body>
</html>

See Also

ItemBeginText

ItemBeginEndTextColor

Tag Cloud Control

ASPxCloudControl Class

ASPxCloudControl Members

DevExpress.Web Namespace