Spread ASP.NET 6.0 Product Documentation
DisplayCount Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > TagCloudCellType Class : DisplayCount Property


Glossary Item Box

Gets or sets the number of individual cloud items to display.

Syntax

Visual Basic (Declaration) 
Public Property DisplayCount As Integer
Visual Basic (Usage)Copy Code
Dim instance As TagCloudCellType
Dim value As Integer
 
instance.DisplayCount = value
 
value = instance.DisplayCount
C# 
public int DisplayCount {get; set;}

Property Value

Integer number of items to display

Example

This example shows the properties of the tag cloud cell type.
C#Copy Code
FarPoint.Web.Spread.TagCloudCellType tagCell = new FarPoint.Web.Spread.TagCloudCellType(new string[] { "SEARCH", "ASP.NET",
"JAVASCRIPT" }, new string[] { "20", "50", "30" }, new string[] { "http://www.google.com", "http://www.farpointspread.com/",
"http://www.w3schools.com/js/" });
tagCell.RankingColors = new string[] { "green", "red", "puple", "yellow", "brown", "black" };
tagCell.RankingFonts = new string[] { "Arial", "Century", "Georgia", "Onyx", "Times Roman" };
tagCell.HoverColor = "Orange";
tagCell.DisplayLimit = FarPoint.Web.Spread.DisplayLimit.MostWeight;
tagCell.DisplayCount = 2;
tagCell.SortOrder = FarPoint.Web.Spread.SortOrder.DisplayTextDescending;
tagCell.BackColor = System.Drawing.Color.Yellow;
FpSpread1.ActiveSheetView.Cells[1, 0].CellType = tagCell;
Visual BasicCopy Code
Dim tagCell As New FarPoint.Web.Spread.TagCloudCellType(New String() {"SEARCH", "ASP.NET", "JAVASCRIPT"}, New String() {"20",
"50", "30"}, New String() {"http://www.google.com", "http://www.farpointspread.com/", "http://www.w3schools.com/js/"})
tagCell.RankingColors = New String() {"green", "red", "puple", "yellow", "brown", "black"}
tagCell.RankingFonts = New String() {"Arial", "Century", "Georgia", "Onyx", "Times Roman"}
tagCell.HoverColor = "Orange"
tagCell.DisplayLimit = FarPoint.Web.Spread.DisplayLimit.MostWeight
tagCell.DisplayCount = 2
tagCell.SortOrder = FarPoint.Web.Spread.SortOrder.DisplayTextDescending
tagCell.BackColor = System.Drawing.Color.Yellow
FpSpread1.ActiveSheetView.Cells(1, 0).CellType = tagCell

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.