MESCIUS SPREAD for Windows Forms 17.0J
ScrollBars プロパティ (GcTextBoxCellType)

複数行の <see cref="T:GrapeCity.Win.Spread.InputMan.CellType.GcTextBox" /> コントロールにどのスクロールバーを表示するかを取得または設定します。
構文
'Declaration
 
Public Property ScrollBars As ScrollBars
public ScrollBars ScrollBars {get; set;}

プロパティ値

複数行の <see cref="T:GrapeCity.Win.Spread.InputMan.CellType.GcTextBox" /> コントロールにスクロールバーを表示しないか、水平スクロールバーを表示するか、垂直スクロールバーを表示するか、両方のスクロールバーを表示するかを示す <see cref="P:GrapeCity.Win.Spread.InputMan.CellType.GcTextBox.ScrollBars" /> 列挙値の1つ。<br />
既定値は <b>None</b> です。
解説
<see cref="P:GrapeCity.Win.Spread.InputMan.CellType.GcTextBox.WrapMode" /> プロパティが <b>WrapMode.WordWrap</b> または <b>WrapMode.CharWrap</b> に設定されている場合は、<b>ScrollBars</b> プロパティの値に関わらず、水平スクロールバーは表示されません。
次のサンプルコードは、ScrollBars プロパティを使用します。
GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType textcell = new GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType();
textcell.FocusPosition = GrapeCity.Win.Spread.InputMan.CellType.EditorBaseFocusCursorPosition.MouseLocation;
textcell.GridLine = new GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dashed, Color.DarkGreen);
textcell.LineSpace = 2;
textcell.ScrollBarMode = GrapeCity.Win.Spread.InputMan.CellType.ScrollBarMode.Automatic;
textcell.ScrollBars = ScrollBars.Both;
textcell.Multiline = true;
fpSpread1.Sheets[0].Cells[0, 0].CellType = textcell;
Dim textcell As New GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType()
textcell.FocusPosition = GrapeCity.Win.Spread.InputMan.CellType.EditorBaseFocusCursorPosition.MouseLocation
textcell.GridLine = New GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dashed, Color.DarkGreen)
textcell.LineSpace = 2
textcell.ScrollBarMode = GrapeCity.Win.Spread.InputMan.CellType.ScrollBarMode.Automatic
textcell.ScrollBars = ScrollBars.Both
textcell.Multiline = True
fpSpread1.Sheets(0).Cells(0, 0).CellType = textcell
参照

GcTextBoxCellType クラス
GcTextBoxCellType メンバ

 

 


© MESCIUS inc. All rights reserved.