MESCIUS SPREAD for Windows Forms 17.0J
WrapMode プロパティ

<see cref="T:GrapeCity.Win.Spread.InputMan.CellType.GcTextBox" /> コントロールが複数行の場合の折り返しルールを取得または設定します。
構文
'Declaration
 
Public Property WrapMode As WrapMode
public WrapMode WrapMode {get; set;}

プロパティ値

テキストの折り返しルールを示す <see cref="P:GrapeCity.Win.Spread.InputMan.CellType.GcTextBox.WrapMode" /> 列挙体。<br />
既定値は <b>WrapMode.WordWrap</b> です。
解説
WrapModeプロパティは、テキストの折り返し動作に対して有効になります。 WrapMode.WordWrap値は、テキストを単語で折り返すことを意味します。 WrapMode.CharWrap値は、テキストを文字で折り返すことを意味します。このプロパティはセルが編集モードのときにのみ効果があります。
次のサンプルコードは、WrapMode プロパティを使用します。
GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType textcell = new GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType();
textcell.WrapMode = GrapeCity.Win.Spread.InputMan.CellType.WrapMode.WordWrap;
textcell.Multiline = true;
fpSpread1.Sheets[0].Cells[0, 0].CellType = textcell;
Dim textcell As New GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType()
textcell.WrapMode = GrapeCity.Win.Spread.InputMan.CellType.WrapMode.WordWrap
textcell.Multiline = True
fpSpread1.Sheets(0).Cells(0, 0).CellType = textcell
参照

GcTextBoxCellType クラス
GcTextBoxCellType メンバ

 

 


© MESCIUS inc. All rights reserved.