MESCIUS SPREAD for ASP.NET 10.0J
Title プロパティ (TagCloudItem)

HTMLアンカーのタイトル(ツールチップ)を取得または設定します。
構文
'Declaration
 
Public Property Title As String
public string Title {get; set;}

プロパティ値

タグクラウド項目のタイトル(ツールチップ)を含むString
次のサンプルコードは、タグクラウド項目の使用方法を示します。
FarPoint.Web.Spread.TagCloudCellType tagCell = new FarPoint.Web.Spread.TagCloudCellType();
FarPoint.Web.Spread.Renderer.TagCloudItem tgItem1 = new FarPoint.Web.Spread.Renderer.TagCloudItem();
tgItem1.DisplayText = "SEARCH";
tgItem1.Href = "http://www.google.com";
tgItem1.Text = "Text1";
tgItem1.Title = "Click here to search";
tgItem1.Weight = 60;
FarPoint.Web.Spread.Renderer.TagCloudItem tgItem2 = new FarPoint.Web.Spread.Renderer.TagCloudItem();
tgItem2.DisplayText = "ASP.NET";
tgItem2.Href = "http://www.grapecity.com/tools/products/spreadasp8";
tgItem2.Text = "Text2";
tgItem2.Title = "Learn more about SPREAD for ASP.NET";
tgItem1.Weight = 90;
FarPoint.Web.Spread.Renderer.TagCloudItem tgItem3 = new FarPoint.Web.Spread.Renderer.TagCloudItem();
tgItem3.DisplayText = "Windows Forms";
tgItem3.Href = "http://www.grapecity.com/tools/products/spreadwin8";
tgItem3.Text = "Text3";
tgItem3.Title = "Learn details about SPREAD for Windows Forms";
tgItem3.Weight = 120;

tagCell.TagCloudItems.Add(tgItem1);
tagCell.TagCloudItems.Add(tgItem2);
tagCell.TagCloudItems.Add(tgItem3);
FpSpread1.ActiveSheetView.Cells[1, 1].CellType = tagCell;
//try with some methods of TagCloudItems
tagCell.TagCloudItems.Clear();//clear all items
tagCell.TagCloudItems.Insert(1, tgItem3); //insert tgItem3 
tagCell.TagCloudItems.Remove(tgItem2); //remove tagItem2
tagCell.TagCloudItems.RemoveAt(1); //remove item with index 2
ListBox1.Items.Add(tagCell.TagCloudItems.Count.ToString());
ListBox1.Items.Add(tagCell.TagCloudItems.IndexOf(tgItem3).ToString());
Dim tagCell As New FarPoint.Web.Spread.TagCloudCellType()
Dim tgItem1 As New FarPoint.Web.Spread.Renderer.TagCloudItem()
tgItem1.DisplayText = "SEARCH"
tgItem1.Href = "http://www.google.com"
tgItem1.Text = "Text1"
tgItem1.Title = "Click here to search"
tgItem1.Weight = 60
Dim tgItem2 As New FarPoint.Web.Spread.Renderer.TagCloudItem()
tgItem2.DisplayText = "ASP.NET"
tgItem2.Href = "http://www.grapecity.com/tools/products/spreadasp8"
tgItem2.Text = "Text2"
tgItem2.Title = "Learn more about SPREAD for ASP.NET"
tgItem1.Weight = 90
Dim tgItem3 As New FarPoint.Web.Spread.Renderer.TagCloudItem()
tgItem3.DisplayText = "Windows Forms"
tgItem3.Href = "http://www.grapecity.com/tools/products/spreadwin8"
tgItem3.Text = "Text3"
tgItem3.Title = "Learn details about SPREAD for Windows Forms"
tgItem3.Weight = 120

tagCell.TagCloudItems.Add(tgItem1)
tagCell.TagCloudItems.Add(tgItem2)
tagCell.TagCloudItems.Add(tgItem3)
FpSpread1.ActiveSheetView.Cells(1, 1).CellType = tagCell
'try with some methods of TagCloudItems
tagCell.TagCloudItems.Clear()
'clear all items
tagCell.TagCloudItems.Insert(1, tgItem3)
'insert tgItem3
tagCell.TagCloudItems.Remove(tgItem2)
'remove tagItem2
tagCell.TagCloudItems.RemoveAt(1)
'remove item with index 2
ListBox1.Items.Add(tagCell.TagCloudItems.Count.ToString())
ListBox1.Items.Add(tagCell.TagCloudItems.IndexOf(tgItem3).ToString())
参照

TagCloudItem クラス
TagCloudItem メンバ

 

 


© MESCIUS inc. All rights reserved.