FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread.CellType 名前空間 > ButtonCellType クラス : TextAlign プロパティ |
'Declaration Public Property TextAlign As ButtonTextAlign
'使用法 Dim instance As ButtonCellType Dim value As ButtonTextAlign instance.TextAlign = value value = instance.TextAlign
public ButtonTextAlign TextAlign {get; set;}
FarPoint.Win.Spread.CellType.ButtonCellType butncell = new FarPoint.Win.Spread.CellType.ButtonCellType(); butncell.TwoState = true; Image upimage; Image dnimage; upimage = Image.FromFile("..\\images\\up.jpg"); dnimage = Image.FromFile("..\\images\\down.jpg"); butncell.Picture = upimage; butncell.PictureDown = dnimage; butncell.TextAlign = FarPoint.Win.ButtonTextAlign.TextTopPictBottom; butncell.Text = "Now up - Click"; butncell.TextDown ="Now down - Click"; fpSpread1.Sheets[0].Cells[4,2].CellType = butncell;
Dim butncell As New FarPoint.Win.Spread.CellType.ButtonCellType() butncell.TwoState = True Dim upimage As Image Dim dnimage As Image butncell.Picture = upimage.FromFile("..\images\up.jpg") butncell.PictureDown = dnimage.FromFile("..\images\down.jpg") butncell.TextAlign = FarPoint.Win.ButtonTextAlign.TextTopPictBottom butncell.Text = "Now up - Click" butncell.TextDown ="Now down - Click" fpSpread1.Sheets(0).Cells(4,2).CellType = butncell