Spread Windows Forms 10.0 Product Documentation
TextRotationAngle Property (ButtonCellType)
Example 


Gets or sets the rotation angle of the text for the cell.
Syntax
'Declaration
 
Public Property TextRotationAngle As Double
'Usage
 
Dim instance As ButtonCellType
Dim value As Double
 
instance.TextRotationAngle = value
 
value = instance.TextRotationAngle
public double TextRotationAngle {get; set;}
Example
This example sets the TextRotationAngle property.
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";
bttncell.TextDown = "...";
bttncell.TextColor = Color.Green;
bttncell.WordWrap = true;
bttncell.UseVisualStyleBackColor = false;
bttncell.TextOrientation = FarPoint.Win.TextOrientation.TextRotateCustom;
bttncell.TextRotationAngle = 20;
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"
bttncell.TextDown = "..."
bttncell.TextColor = Color.Green
bttncell.WordWrap = True
bttncell.UseVisualStyleBackColor = False
bttncell.TextOrientation = FarPoint.Win.TextOrientation.TextRotateCustom
bttncell.TextRotationAngle = 20
fpSpread1.Sheets(0).Cells(3,2).CellType = bttncell
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

ButtonCellType Class
ButtonCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.