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

プレビュー行の内容の水平方向の配置を取得または設定します。
構文
'宣言
 
Public Overridable Property HorizontalAlignment As HorizontalAlignment
public virtual HorizontalAlignment HorizontalAlignment {get; set;}
使用例
次のサンプルコードは、HorizontalAlignmentプロパティを設定します。
FarPoint.Win.BevelBorder bord = new FarPoint.Win.BevelBorder(FarPoint.Win.BevelBorderType.Raised, Color.Red, Color.Blue);
fpSpread1.Sheets[0].Cells[0, 1, 10, 1].Text = "Preview Row";
FarPoint.Win.Spread.PreviewRowInfo preview = new FarPoint.Win.Spread.PreviewRowInfo();
preview.BackColor = Color.BurlyWood;
preview.Visible = true;
preview.Border = bord;
preview.ForeColor = Color.Black;
preview.Font = new System.Drawing.Font("Arial", 12);
preview.Height = 30;
preview.HorizontalAlignment = FarPoint.Win.HorizontalAlignment.Left;
preview.VerticalAlignment = FarPoint.Win.VerticalAlignment.Center;
fpSpread1.Sheets[0].PreviewRowInfo = preview;

private void fpSpread1_PreviewRowFetch(object sender, FarPoint.Win.Spread.PreviewRowFetchEventArgs e)
{
e.PreviewRowContent = "content";
}
Dim bord As New FarPoint.Win.BevelBorder(FarPoint.Win.BevelBorderType.Raised, Color.Red, Color.Blue)
FpSpread1.Sheets(0).Cells(0, 1, 10, 1).Text = "Preview Row"
Dim preview As New FarPoint.Win.Spread.PreviewRowInfo()
preview.BackColor = Color.BurlyWood
preview.Visible = True
preview.Border = bord
preview.ForeColor = Color.Black
preview.Font = New System.Drawing.Font("Arial", 12)
preview.Height = 30
preview.HorizontalAlignment = FarPoint.Win.HorizontalAlignment.Left
preview.VerticalAlignment = FarPoint.Win.VerticalAlignment.Center
FpSpread1.Sheets(0).PreviewRowInfo = preview

Private Sub FpSpread1_PreviewRowFetch(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.PreviewRowFetchEventArgs) Handles FpSpread1.PreviewRowFetch
e.PreviewRowContent = "content"
End Sub
参照

PreviewRowInfo クラス
PreviewRowInfo メンバ

 

 


© MESCIUS inc. All rights reserved.