'Declaration Public Property TwoState As Boolean
'Usage Dim instance As ButtonCellType Dim value As Boolean instance.TwoState = value value = instance.TwoState
public bool TwoState {get; set;}
'Declaration Public Property TwoState As Boolean
'Usage Dim instance As ButtonCellType Dim value As Boolean instance.TwoState = value value = instance.TwoState
public bool TwoState {get; set;}
By default the button cell acts like a push button, which you can press by clicking the left button of the mouse. It does not stay pressed when you release the mouse button. (This is a one-state button.) If you prefer, you can set this property to true and the button cell acts like toggle, or two-state, button. In this case, it stays pressed when you click it with the left mouse button.
FarPoint.Win.Spread.CellType.ButtonCellType bttncell = new FarPoint.Win.Spread.CellType.ButtonCellType(); bttncell.ButtonColor = Color.Cyan; bttncell.DarkColor = Color.DarkCyan; bttncell.LightColor = Color.AliceBlue; bttncell.ShadowSize = 3; bttncell.Text = "Click and hold..."; bttncell.TextDown = "...you can see how words go to multiple lines. Now let go."; bttncell.TextColor = Color.Green; bttncell.WordWrap = true; bttncell.UseVisualStyleBackColor = false; fpSpread1.Sheets[0].Cells[3,2].CellType = bttncell;
Dim bttncell As New FarPoint.Win.Spread.CellType.ButtonCellType() bttncell.ButtonColor = Color.Cyan bttncell.DarkColor = Color.DarkCyan bttncell.LightColor = Color.AliceBlue bttncell.ShadowSize = 3 bttncell.Text = "Click and hold..." bttncell.TextDown = "...you can see how words go to multiple lines. Now let go." bttncell.TextColor = Color.Green bttncell.WordWrap = True bttncell.UseVisualStyleBackColor = False fpSpread1.Sheets(0).Cells(3,2).CellType = bttncell