FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > StyleInfo クラス : IsHorizontalAlignmentSet メソッド |
'Declaration Public Overridable Function IsHorizontalAlignmentSet() As Boolean
public virtual bool IsHorizontalAlignmentSet()
HorizontalAlignmentプロパティが設定されているかどうかを取得します。
FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo(); bool b; si.HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; fpSpread1.ActiveSheet.DefaultStyle = si; b = si.IsHorizontalAlignmentSet(); label1.Text = b.ToString();
Dim si As New FarPoint.Win.Spread.StyleInfo Dim b As Boolean si.HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right FpSpread1.ActiveSheet.DefaultStyle = si b = si.IsHorizontalAlignmentSet() Label1.Text = b.ToString()