回复 1楼kitara的帖子
你好,
我通过一下代码可以成功添加:
- private void addImageToolStripMenuItem_Click(object sender, EventArgs e)
- {
- TXTextControl.TextFrame frame = new TXTextControl.TextFrame(new Size(1000, 1000));
- frame.ID = 20;
- this.textControl1.TextFrames.Add(frame, 1);
- frame.Selection.Text = "wow";
- }
- private void addImagToolStripMenuItem_Click(object sender, EventArgs e)
- {
- TXTextControl.TextFrame frame = this.textControl1.TextFrames.GetItem(20);
- TXTextControl.Image image2 = new TXTextControl.Image(Image.FromFile("Untitled.png"));
- frame.Images.Add(image2, 1);
- }
复制代码
如果仍然无法测试成功,请发 Demo 到论坛调试。 |