背景パターンの例
| MultiRowHatchStyle | 適用イメージ |
|---|---|
| Inherit | 親から値を取得 |
| None | なし |
| Horizontal | ![]() |
| Vertical | ![]() |
| ForwardDiagonal | ![]() |
| BackwardDiagonal | ![]() |
| LargeGrid | ![]() |
| DiagonalCross | ![]() |
| Percent05 | ![]() |
| Percent10 | ![]() |
| Percent20 | ![]() |
| Percent25 | ![]() |
デザイナによる設定
- 背景パターンを設定するセルを選択する。(例: textBoxCell1)
- プロパティウィンドウでtextBoxCell1.Style.PatternStyleプロパティのドロップダウンリストから任意の背景パターンを選択する。
- プロパティウィンドウでtextBoxCell1.Style.PatternColorプロパティのドロップダウンウィンドウから任意の背景パターンの色を選択する。
コーディングによる設定
Imports GrapeCity.Win.MultiRow Dim TextBoxCell1 As New TextBoxCell() TextBoxCell1.Style.PatternColor = Color.LightBlue TextBoxCell1.Style.PatternStyle = MultiRowHatchStyle.DiagonalCross GcMultiRow1.Template = Template.CreateGridTemplate(New Cell() { TextBoxCell1 }) GcMultiRow1.RowCount = 10 GcMultiRow1.Rows(1).Cells(0).Style.PatternColor = Color.LightCoral
using GrapeCity.Win.MultiRow; TextBoxCell textBoxCell1 = new TextBoxCell(); textBoxCell1.Style.PatternColor = Color.LightBlue; textBoxCell1.Style.PatternStyle = MultiRowHatchStyle.DiagonalCross; gcMultiRow1.Template = Template.CreateGridTemplate(new Cell[] { textBoxCell1 }); gcMultiRow1.RowCount = 10; gcMultiRow1.Rows[1].Cells[0].Style.PatternColor = Color.LightCoral;









