回复 1楼qd98zhq的帖子
Cell 可以设置背景图片,看能否满足您的需求:
- private void button1_Click(object sender, RoutedEventArgs e)
- {
- BitmapImage bmp = new BitmapImage(new Uri("../../Untitled.png", UriKind.RelativeOrAbsolute));
- ImageBrush ib = new ImageBrush();
- ib.ImageSource = bmp;
-
- this.gcspread1.ActiveSheet.Cells[0, 0].Background = ib;
- this.gcspread1.ActiveSheet.Cells[0, 0].Text = "fdsfds";
- }
复制代码 |