public void SetTextCell3() { TextCellType textCellType1 = new TextCellType(); //Enter edit status, select some text, the selection background will be Red. textCellType1.SelectionBrush = new SolidColorBrush(Colors.Red); textCellType1.SelectionOpacity = 0.6; textCellType1.Multiline = true; textCellType1.TextWrapping = System.Windows.TextWrapping.Wrap; this._gcSpreadGrid1[0, 0].CellType = textCellType1; }
Public Sub SetTextCell3() Dim textCellType1 As New TextCellType() 'Enter edit status, select some text, the selection background will be Red. textCellType1.SelectionBrush = New SolidColorBrush(Colors.Red) textCellType1.SelectionOpacity = 0.6 textCellType1.Multiline = True textCellType1.TextWrapping = System.Windows.TextWrapping.Wrap Me._gcSpreadGrid1(0, 0).CellType = textCellType1 End Sub