PowerTools SPREAD for ASP.NET 8.0J
Height プロパティ (TitleInfo)

タイトルバーの高さを取得または設定します。
構文
'Declaration
 
Public Property Height As Unit
public Unit Height {get; set;}

プロパティ値

タイトルバーの高さを含むUnitオブジェクト
解説
タイトルの実際の高さはmax(Height, ブラウザーのフォントの高さ)です。
次のサンプルコードは、最初のシートのタイトル情報を設定します。
FpSpread1.Sheets[0].TitleInfo.Text = "This is sheet 1";
FpSpread1.Sheets[0].TitleInfo.Background.BackGroundImageUrl = FarPoint.Web.Spread.Background.DEFAULTGRADIENTMASKIMAGE;
FpSpread1.Sheets[0].TitleInfo.BackColor = Drawing.Color.Coral;
FpSpread1.Sheets[0].TitleInfo.Border = new FarPoint.Web.Spread.Border(System.Web.UI.WebControls.BorderStyle.Double, Drawing.Color.DarkKhaki, 2);
FpSpread1.Sheets[0].TitleInfo.CellType = new FarPoint.Web.Spread.GeneralCellType();
FpSpread1.Sheets[0].TitleInfo.Font.Bold = true;
FpSpread1.Sheets[0].TitleInfo.ForeColor = Drawing.Color.DarkKhaki;
FpSpread1.Sheets[0].TitleInfo.Height = 20;
FpSpread1.Sheets[0].TitleInfo.HorizontalAlign = HorizontalAlign.Center;
FpSpread1.Sheets[0].TitleInfo.Margin = new FarPoint.Web.Spread.Inset(10, 10, 10, 10);
FpSpread1.Sheets[0].TitleInfo.VerticalAlign = VerticalAlign.Middle;
FpSpread1.Sheets(0).TitleInfo.Text = "This is sheet 1"
FpSpread1.Sheets(0).TitleInfo.Background.BackGroundImageUrl = FarPoint.Web.Spread.Background.DEFAULTGRADIENTMASKIMAGE
FpSpread1.Sheets(0).TitleInfo.BackColor = Drawing.Color.Coral
FpSpread1.Sheets(0).TitleInfo.Border = New FarPoint.Web.Spread.Border(System.Web.UI.WebControls.BorderStyle.Double, Drawing.Color.DarkKhaki, 2)
FpSpread1.Sheets(0).TitleInfo.CellType = New FarPoint.Web.Spread.GeneralCellType
FpSpread1.Sheets(0).TitleInfo.Font.Bold = True
FpSpread1.Sheets(0).TitleInfo.ForeColor = Drawing.Color.DarkKhaki
FpSpread1.Sheets(0).TitleInfo.Height = 20
FpSpread1.Sheets(0).TitleInfo.HorizontalAlign = HorizontalAlign.Center
FpSpread1.Sheets(0).TitleInfo.Margin = New FarPoint.Web.Spread.Inset(10, 10, 10, 10)
FpSpread1.Sheets(0).TitleInfo.VerticalAlign = VerticalAlign.Middle
参照

TitleInfo クラス
TitleInfo メンバ

 

 


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