WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Interface IGridFindReplaceDialogSink

    Show / Hide Table of Contents

    Interface IGridFindReplaceDialogSink

    Provides an interface that the GridFindReplaceDialog uses to communicate with its target control for find and replace operations. See GridFindReplaceDialogSink for an implementation for a regular grid control.

    Namespace: Syncfusion.Windows.Forms.Grid
    Assembly: Syncfusion.Grid.Windows.dll
    Syntax
    public interface IGridFindReplaceDialogSink

    Methods

    Find(GridFindReplaceEventArgs)

    Finds the text with the specified criteria.

    Declaration
    object Find(GridFindReplaceEventArgs e)
    Parameters
    Type Name Description
    GridFindReplaceEventArgs e

    Text and search criteria.

    Returns
    Type Description
    System.Object

    The location info (typically a GridRangeInfo) or NULL if not found.

    GetScreenRect(Object)

    Returns the screen bounds for the selection object. The find and replace dialog calls this method to ensure that it does not hide the current selected text after a successful find operation.

    Declaration
    Rectangle GetScreenRect(object lc)
    Parameters
    Type Name Description
    System.Object lc

    The location object, typically a GridRangeInfo.

    Returns
    Type Description
    System.Drawing.Rectangle

    The bounds in screen coordinates.

    Replace(GridFindReplaceEventArgs)

    Replaces the text with the specified criteria.

    Declaration
    object Replace(GridFindReplaceEventArgs e)
    Parameters
    Type Name Description
    GridFindReplaceEventArgs e

    Text and search criteria.

    Returns
    Type Description
    System.Object

    The location info (typically a GridRangeInfo) or NULL if not found.

    ReplaceAll(GridFindReplaceEventArgs)

    Replace the text in all cells with the specified criteria.

    Declaration
    void ReplaceAll(GridFindReplaceEventArgs e)
    Parameters
    Type Name Description
    GridFindReplaceEventArgs e

    Text and search criteria.

    ShowInfoMessage(String, String)

    Displays a warning message.

    Declaration
    void ShowInfoMessage(string msg, string category)
    Parameters
    Type Name Description
    System.String msg

    The message text.

    System.String category

    The dialog title.

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved