FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > StyleInfo クラス : HorizontalAlignment プロパティ |
'Declaration Public Overridable Property HorizontalAlignment As CellHorizontalAlignment
'使用法 Dim instance As StyleInfo Dim value As CellHorizontalAlignment instance.HorizontalAlignment = value value = instance.HorizontalAlignment
public virtual CellHorizontalAlignment HorizontalAlignment {get; set;}
FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo(); DialogResult dlg; si.HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; fpSpread1.ActiveSheet.DefaultStyle = si; dlg = MessageBox.Show("Reset the alignment?"); if (dlg == DialogResult.OK) { si.ResetHorizontalAlignment(); fpSpread1.ActiveSheet.DefaultStyle = si; }
Dim si As New FarPoint.Win.Spread.StyleInfo Dim dlg As DialogResult si.HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right FpSpread1.ActiveSheet.DefaultStyle = si dlg = MessageBox.Show("Reset the alignment?") If dlg = DialogResult.OK Then si.ResetHorizontalAlignment() FpSpread1.ActiveSheet.DefaultStyle = si End If