MESCIUS SPREAD for Windows Forms 17.0J
DisplayZero プロパティ (Appearance)

ゼロ値をセルに表示するかどうかを取得または設定します。
構文
'Declaration
 
Public Property DisplayZero As Boolean
public bool DisplayZero {get; set;}

プロパティ値

Boolean:ゼロを表示する場合は True、それ以外の場合は False
次のサンプル コードは、先頭のゼロを表示するかどうかを設定します。
FarPoint.Win.Spread.Appearance appr = new FarPoint.Win.Spread.Appearance(); 
appr.DisplayZero = false; 
appr.FilterState = FilterState.None; 
appr.MouseOver = true; 
appr.RightToLeft = false; 
appr.ShowActive = true; 
appr.SortState = SortState.None; 
appr.VisualStyles = FarPoint.Win.VisualStyles.On; 
FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo(); 
si.SetAppearance(appr); 
fpSpread1.ActiveSheet.SetStyleInfo(0, 0, si);
Dim appr As New FarPoint.Win.Spread.Appearance()
appr.DisplayZero = False
appr.FilterState = FilterState.None
appr.MouseOver = True
appr.RightToLeft = False
appr.ShowActive = True
appr.SortState = SortState.None
appr.VisualStyles = FarPoint.Win.VisualStyles.On
Dim si As New FarPoint.Win.Spread.StyleInfo
si.SetAppearance(appr)
fpSpread1.ActiveSheet.SetStyleInfo(0, 0, si)
参照

Appearance クラス
Appearance メンバ

 

 


© MESCIUS inc. All rights reserved.