src/Misc/EFTools/DesignXmlCore/Base/Shell/TreeGridDesignerTreeControl.cs
/// <summary>
///     Invalidate a specific row in the tree
/// </summary>
/// <param name="absIndex">index of the row to invalidate</param>
Invalidate a specific row in the tree
Invalidate a specific row in the tree
internal void InvalidateItem(int absIndex)
        {
            if (absIndex < 0
                || (Tree != null && absIndex >= Tree.VisibleItemCount))
            {
                throw new ArgumentOutOfRangeException("absIndex");
            }
            NativeMethods.Rectangle rect;
            NativeMethods.SendMessage(Handle, NativeMethods.LB_GETITEMRECT, absIndex, out rect);
            NativeMethods.RedrawWindow(
                Handle, ref rect, IntPtr.Zero, NativeMethods.RedrawWindowFlags.Invalidate | NativeMethods.RedrawWindowFlags.Erase);
        }
internal void InvalidateItem ( int absIndex ) { if ( absIndex < 0 || ( Tree != null && absIndex >= Tree . VisibleItemCount ) ) { throw new ArgumentOutOfRangeException ( " " ) ; } NativeMethods . Rectangle rect ; NativeMethods . SendMessage ( Handle , NativeMethods . LB_GETITEMRECT , absIndex , out rect ) ; NativeMethods . RedrawWindow ( Handle , ref rect , IntPtr . Zero , NativeMethods . RedrawWindowFlags . Invalidate | NativeMethods . RedrawWindowFlags . Erase ) ; }
Invalidate a specific row in the tree
Invalidate a specific row in the tree
absIndex
int
index of the row to invalidate
index of the row to invalidate