MESCIUS SPREAD for Windows Forms 15.0J
TextRotationAngle プロパティ (ButtonCellType)
使用例 

セルのテキストの回転角度を取得または設定します。
構文
'宣言
 
Public Property TextRotationAngle As Double
public double TextRotationAngle {get; set;}
使用例
次のサンプルコードは、TextRotationAngleプロパティを設定します。
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
参照

ButtonCellType クラス
ButtonCellType メンバ

 

 


© MESCIUS inc. All rights reserved.