Hi.
You need to change the background of the sheet for the selected fragment of the document. The background should change in the selection, not in the entire sheet.... On it, you do not need to draw a square, but recolor part of...Height; System.Drawing.Bitmap bmp = new System.Drawing.Bitmap(width...