using System; using System.Data; using System.Collections; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using CMS.ExtendedControls; using CMS.GlobalHelper; using CMS.PortalControls; public partial class CMSWebParts_Wireframe_Components_TagCloud: CMSAbstractWebPart { #region "Properties" /// /// Text /// public string Items { get { return ValidationHelper.GetString(this.GetValue("Items"), "Home\nProducts\nXYZ"); } set { this.SetValue("Items", value); ltlText.Text = value; } } #endregion /// /// Content loaded event handler. /// public override void OnContentLoaded() { base.OnContentLoaded(); SetupControl(); } /// /// Initializes the control properties. /// protected void SetupControl() { if (StopProcessing) { // Do not process } else { ltlText.ItemFormat = "{0} "; ltlText.Text = Items; // Height string h = WebPartHeight; if (!String.IsNullOrEmpty(h)) { ltlText.CssStyle += "height: " + h + ";"; } // Width string w = WebPartWidth; if (!String.IsNullOrEmpty(w)) { ltlText.CssStyle += "width: " + w + ";"; } resElem.ResizedElementID = ltlText.ClientID; } } /// /// Reloads the control data. /// public override void ReloadData() { base.ReloadData(); SetupControl(); } }