public void SetTextCell1()
{
TextCellType textCellType1 = new TextCellType();
textCellType1.Multiline = true;
textCellType1.AcceptsReturn = true;
textCellType1.WatermarkDisplayNull = "DisplayNullText";
textCellType1.WatermarkDisplayNullForeground = new SolidColorBrush(Colors.Gray);
textCellType1.WatermarkNull = "NullText";
textCellType1.WatermarkNullForeground = new SolidColorBrush(Colors.Gray);
this._gcSpreadGrid1[0, 0].CellType = textCellType1;
}
Public Sub SetTextCell1()
Dim textCellType1 As New TextCellType()
textCellType1.Multiline = True
textCellType1.AcceptsReturn = True
textCellType1.WatermarkDisplayNull = "DisplayNullText"
textCellType1.WatermarkDisplayNullForeground = New SolidColorBrush(Colors.Gray)
textCellType1.WatermarkNull = "NullText"
textCellType1.WatermarkNullForeground = New SolidColorBrush(Colors.Gray)
Me._gcSpreadGrid1(0, 0).CellType = textCellType1
End Sub