GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > SideButtonInfo Class : Text Property |
'Declaration Public Property Text As String
'Usage Dim instance As SideButtonInfo Dim value As String instance.Text = value value = instance.Text
public string Text {get; set;}
GrapeCity.Win.Spread.InputMan.CellType.SideButtonInfo testbutton = new GrapeCity.Win.Spread.InputMan.CellType.SideButtonInfo(); testbutton.BackColor = Color.Aquamarine; testbutton.ForeColor = Color.DarkMagenta; testbutton.UseVisualStyleBackColor = false; testbutton.Enabled = true; testbutton.Text = "1"; GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType dateCellType = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType(); dateCellType.SideButtons.Add(new GrapeCity.Win.Spread.InputMan.CellType.SideButtonInfo() { Text = "A" }); this.fpSpread1_Sheet1.Columns[0].CellType = dateCellType; GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType textCellType = new GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType(); textCellType.SideButtons.Add(new GrapeCity.Win.Spread.InputMan.CellType.SideButtonInfo() { Text = "B" }); this.fpSpread1_Sheet1.Columns[1].CellType = textCellType; GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType dateCellType2 = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType(); dateCellType2.SideButtons.Add(testbutton); this.fpSpread1_Sheet1.Columns[2].CellType = dateCellType2;
Dim testbutton As New GrapeCity.Win.Spread.InputMan.CellType.SideButtonInfo() testbutton.BackColor = Color.Aquamarine testbutton.ForeColor = Color.DarkMagenta testbutton.UseVisualStyleBackColor = False testbutton.Enabled = True testbutton.Text = "1" Dim dateCellType As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType() dateCellType.SideButtons.Add(New GrapeCity.Win.Spread.InputMan.CellType.SideButtonInfo() With {.Text = "A"}) FpSpread1_Sheet1.Columns(0).CellType = dateCellType Dim textCellType = New GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType() textCellType.SideButtons.Add(New GrapeCity.Win.Spread.InputMan.CellType.SideButtonInfo() With {.Text = "B"}) FpSpread1_Sheet1.Columns(1).CellType = textCellType Dim dateCellType2 As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType() dateCellType2.SideButtons.Add(testbutton) FpSpread1_Sheet1.Columns(2).CellType = dateCellType2
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8