Skip to main content

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.

public class ejTagCloud : ejBase

Constructors​

Instance member 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);

Instance member ejTagCloud(options)​

Constructs a new instance of the ejTagCloud class.

NameTypeDescription
optionsObjectInitial 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);

Implements​