PowerTools SPREAD for Windows Forms 8.0J
StyleName プロパティ (Rows.DefaultRow)


デフォルト行のセルのカスタムスタイル(NamedStyle オブジェクト)を取得または設定します。
構文
'Declaration
 
Public Shadows Property StyleName As String
'使用法
 
Dim instance As Rows.DefaultRow
Dim value As String
 
instance.StyleName = value
 
value = instance.StyleName
public new string StyleName {get; set;}

プロパティ値

スタイルの名前を含む String
解説

このプロパティが使用できるのは実行時のみです。

次のサンプル コードは、デフォルト行のこのプロパティおよびその他のプロパティの使用方法を示します。
FarPoint.Win.Spread.Rows.DefaultRow df;
df = fpSpread1.ActiveSheet.Rows.Default;
df.BackColor = Color.Khaki;
df.Border = new FarPoint.Win.LineBorder(Color.Blue);
df.CellType = new FarPoint.Win.Spread.CellType.GeneralCellType();
df.Editor = fpSpread1.EditingControl;
df.Font = new Font("Comic Sans MS", 10);
df.ForeColor = Color.DarkBlue;
df.Formatter = fpSpread1.ActiveSheet.Rows.Default.Formatter;
df.HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
df.Locked = false;
df.ParentStyleName = "HeaderDefault";
df.Renderer = fpSpread1.ActiveSheet.Rows.Default.Renderer;
df.StyleName = "HeaderDefault";
df.VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Top;
Dim df As FarPoint.Win.Spread.Rows.DefaultRow
df = fpSpread1.ActiveSheet.Rows.Default
df.BackColor = Color.Khaki
df.Border = New FarPoint.Win.LineBorder(Color.Blue)
df.CellType = New FarPoint.Win.Spread.CellType.GeneralCellType
df.Editor = FpSpread1.EditingControl
df.Font = New Font("Comic Sans MS", 10)
df.ForeColor = Color.DarkBlue
df.Formatter = FpSpread1.ActiveSheet.Rows.Default.Formatter
df.HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right
df.Locked = False
df.ParentStyleName = "HeaderDefault"
df.Renderer = FpSpread1.ActiveSheet.Rows.Default.Renderer
df.StyleName = "HeaderDefault"
df.VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Top
参照

Rows.DefaultRow クラス
Rows.DefaultRow メンバ

 

 


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