PowerTools SPREAD for Windows Forms 8.0J
VerticalAlign プロパティ


タイトルバーの垂直方向の配置を取得または設定します。
構文
'Declaration
 
Public Property VerticalAlign As CellVerticalAlignment
'使用法
 
Dim instance As TitleInfo
Dim value As CellVerticalAlignment
 
instance.VerticalAlign = value
 
value = instance.VerticalAlign
public CellVerticalAlignment VerticalAlign {get; set;}
次のサンプルコードは、配置を設定します。
FarPoint.Win.Spread.TitleInfo test = new FarPoint.Win.Spread.TitleInfo();

private void Form1_Load(object sender, EventArgs e)
{
test.Text = "Testing";
test.Visible = true;
test.HorizontalAlign = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
test.BackColor = Color.Beige;
test.ForeColor = Color.Black;
test.VerticalAlign = FarPoint.Win.Spread.CellVerticalAlignment.Center;
fpSpread1.TitleInfo = test;
}

private void button1_Click(object sender, EventArgs e)
{
test.Reset();
}
Dim test As New FarPoint.Win.Spread.TitleInfo()

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
test.Text = "Testing"
test.Visible = True
test.HorizontalAlign = FarPoint.Win.Spread.CellHorizontalAlignment.Center
test.BackColor = Color.Beige
test.ForeColor = Color.Black
test.VerticalAlign = FarPoint.Win.Spread.CellVerticalAlignment.Center
FpSpread1.TitleInfo = test
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
test.Reset()
End Sub
参照

TitleInfo クラス
TitleInfo メンバ

 

 


© 2004-2015, GrapeCity inc. All rights reserved.