Ejemplo n.º 1
0
 /// <summary>
 /// Set the description on a Shell Image drag/drop action</summary>
 /// <param name="e">DragEventArgs for event</param>
 public static void ClearDescription(this DragEventArgs e)
 {
     DropDescriptionHelper.SetDropDescription((IComDataObject)e.Data, DropImageType.Invalid, null, null);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Set the description on a Shell Image drag/drop action.
 /// Some UI coloring is applied to the text in <paramref name="insert"/> if used by specifying %1
 /// in <paramref name="message"/>.
 /// The characters %% and %1 are the subset of FormatMessage markers that are processed here.</summary>
 /// <param name="e">The DragEventArgs from the OnDragEnter/OnDragOver event</param>
 /// <param name="message">Text such as "Move to %1"</param>
 /// <param name="insert">Text such as "Documents", inserted as specified by <paramref name="message"/></param>
 public static void SetDescription(this DragEventArgs e, string message, string insert)
 {
     DropDescriptionHelper.SetDropDescription((IComDataObject)e.Data, (DropImageType)e.Effect, message, insert);
 }