示例#1
0
 /// <summary>
 /// Tests whether the <see cref="ShellItem"/> is the immediate parent
 /// of another item.
 /// </summary>
 ///
 /// <param name="item">
 /// The potential child item.
 /// </param>
 public bool IsImmediateParentOf(ShellItem item)
 {
     return(IsFolder && Shell32.ILIsParent(Pidl, item.Pidl, true));
 }
示例#2
0
 /// <summary>
 /// Tests whether the <see cref="ShellItem"/> is the parent of
 /// another item.
 /// </summary>
 ///
 /// <param name="item">
 /// The potential child item.
 /// </param>
 public bool IsParentOf(ShellItem item)
 {
     return(IsFolder && Shell32.ILIsParent(Pidl, item.Pidl, false));
 }
示例#3
0
 /// <summary>
 /// Tests whether the <see cref="ShellItem"/> is the parent of
 /// another item.
 /// </summary>
 ///
 /// <param name="item">
 /// The potential child item.
 /// </param>
 public bool IsParentOf(ShellItem item) => IsFolder && Shell32.ILIsParent(Pidl, item.Pidl, false);