Beispiel #1
0
        private void SetClip()
        {
            int   index = rtbText.GetFirstCharIndexOfCurrentLine();
            Point point = rtbText.GetPositionFromCharIndex(index);

            Windows7Taskbar.SetThumbnailClip(Handle, new Rectangle(point, new Size(200, 119)));
        }
 /// <summary>
 /// Specifies that only a portion of the form's client area
 /// should be used in the form's thumbnail.
 /// </summary>
 /// <param name="form">The form.</param>
 /// <param name="clipRect">The rectangle that specifies the clipped region.</param>
 public static void SetThumbnailClip(
     this Form form, Rectangle clipRect)
 {
     Windows7Taskbar.SetThumbnailClip(form.Handle, clipRect);
 }
Beispiel #3
0
 /// <summary>
 /// Specifies that only a portion of the form's client area
 /// should be used in the form's thumbnail.
 /// </summary>
 /// <param name="form">The form.</param>
 /// <param name="clipRect">The rectangle that specifies the clipped region.</param>
 public static void SetThumbnailClip(
     this Window form, Rectangle clipRect)
 {
     Windows7Taskbar.SetThumbnailClip(GetWindowHandle(form), clipRect);
 }