プロパティ値
文字列を TextCellType セルに貼り付けるときに CrLf 文字をどのように処理するかを示す GrapeCity.Windows.SpreadGrid.Editors.CrLfMode 列挙体。既定値は GrapeCity.Windows.SpreadGrid.Editors.CrLfMode.Cut です。
例外 | 解説 |
---|---|
System.ArgumentException | 値が GrapeCity.Windows.SpreadGrid.Editors.CrLfMode 列挙体で定義されていません。 |
public void SetTextCell7() { TextCellType textCellType1 = new TextCellType(); textCellType1.Multiline = false; //When cell is single line, when some text is pasted into the TextCell, the all CrLf will be removed. textCellType1.AcceptsCrLf = GrapeCity.Windows.SpreadGrid.Editors.CrLfMode.Filter; textCellType1.AutoWordSelection = true; this._gcSpreadGrid1[0, 0].CellType = textCellType1; }
Public Sub SetTextCell7() Dim textCellType1 As New TextCellType() textCellType1.Multiline = False 'When cell is single line, when some text is pasted into the TextCell, the all CrLf will be removed. textCellType1.AcceptsCrLf = GrapeCity.Windows.SpreadGrid.Editors.CrLfMode.Filter textCellType1.AutoWordSelection = True Me._gcSpreadGrid1(0, 0).CellType = textCellType1 End Sub