ejTagCloud
Namespace: Wisej.Web.Ext.Syncfusion
Assembly: Wisej.Web.Ext.Syncfusion (4.1.0.0)
The TagCloud allows the user to display a list of links or tags with a structured cloud format where the importance of the tags can differentiate with varied font sizes, colors, and styles.
- C#
- VB.NET
public class ejTagCloud : ejBase
Public Class ejTagCloud
Inherits ejBase
Constructors
ejTagCloud()
Constructs a new instance of the ejTagCloud class.
Example:
The following example creates the tag cloud and binds it to a list of tags through the options.
var tagCloud = new ejTagCloud();
tagCloud.Options.titleText = "Topics";
tagCloud.Options.dataSource = new[]
{
new { text = "Wisej.NET", url = "https://wisej.com", frequency = 12 },
new { text = "C#", url = "https://learn.microsoft.com/dotnet/csharp", frequency = 8 },
new { text = "JavaScript", url = "https://developer.mozilla.org", frequency = 5 }
};
tagCloud.Size = new Size(300, 200);
this.Controls.Add(tagCloud);
ejTagCloud(options)
Constructs a new instance of the ejTagCloud class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options. |
Example:
The following example creates a tag cloud bound to a list with custom field names and limits the size of the fonts.
var tagCloud = new ejTagCloud(new
{
dataSource = keywords,
fields = new { text = "Name", url = "Link", frequency = "Count" },
minFontSize = "10px",
maxFontSize = "32px",
showTitle = false
});
tagCloud.Size = new Size(300, 200);
this.Controls.Add(tagCloud);