PowerTools SPREAD for Windows Forms 10.0J
TextAlign プロパティ (MultiOptionCellType)


セル内のテキストの配置方法を取得または設定します。
構文
'Declaration
 
Public Property TextAlign As ButtonTextAlign
'使用法
 
Dim instance As MultiOptionCellType
Dim value As ButtonTextAlign
 
instance.TextAlign = value
 
value = instance.TextAlign
public ButtonTextAlign TextAlign {get; set;}

プロパティ値

テキストの配置方法を決定するButtonTextAlign設定
次のサンプルコードは、マルチオプションボタンに使用するピクチャを指定します。
FarPoint.Win.Spread.CellType.MultiOptionCellType multcell = new FarPoint.Win.Spread.CellType.MultiOptionCellType();
multcell.BackgroundImage = new FarPoint.Win.Picture(Image.FromFile("..\\images\\awbool.bmp"));
multcell.Items = new String[] {"One", "Two", "Three"};
multcell.Orientation = FarPoint.Win.RadioOrientation.Horizontal;
multcell.Picture.True = Image.FromFile("..\\images\\checked.gif");
multcell.Picture.False = Image.FromFile("..\\images\\unchecked.gif");
multcell.TextAlign = FarPoint.Win.ButtonTextAlign.TextRightPictLeft;
multcell.UseMnemonic = true;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = multcell;
Dim multcell As New FarPoint.Win.Spread.CellType.MultiOptionCellType()
multcell.BackgroundImage = New FarPoint.Win.Picture(Image.FromFile("..\images\awbool.bmp"))
multcell.Items = New String() {"One", "Two", "Three"}
multcell.Orientation = FarPoint.Win.RadioOrientation.Horizontal
multcell.Picture.True = Image.FromFile("..\images\checked.gif")
multcell.Picture.False = Image.FromFile("..\images\unchecked.gif")
multcell.TextAlign = FarPoint.Win.ButtonTextAlign.TextRightPictLeft
multcell.UseMnemonic = True
FpSpread1.ActiveSheet.Cells(0, 0).CellType = multcell
参照

MultiOptionCellType クラス
MultiOptionCellType メンバ

 

 


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