### Class

# Foundry FileSearchMatch

since: 1.1

#### Description [src]

    abstract class Foundry.FileSearchMatch : GObject.Object
    {
      /* No available fields */
    }

A file search match result.

`FoundryFileSearchMatch` represents a search match result containing information about where a search term was found in a file, including the file location, line number, character offset, and text length.

Available since: 1.1

#### Ancestors

- GObject

#### Instance methods

###### foundry_file_search_match_dup_after_context

Gets the text after the search text.

since: 1.1

###### foundry_file_search_match_dup_before_context

Gets the text before the search text.

since: 1.1

###### foundry_file_search_match_dup_file

Gets a copy of the file associated with the search match.

since: 1.1

###### foundry_file_search_match_dup_icon

Gets the icon for the file associated with the search match.

since: 1.1

###### foundry_file_search_match_dup_text

Gets the matched text.

since: 1.1

###### foundry_file_search_match_get_length

Gets the length of the search text in characters.

since: 1.1

###### foundry_file_search_match_get_line

Gets the line number where the search match was found.

since: 1.1

###### foundry_file_search_match_get_line_offset

Gets the character offset within the line where the search match starts.

since: 1.1

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Properties

###### Foundry.FileSearchMatch:after-context

No description available.

###### Foundry.FileSearchMatch:before-context

No description available.

###### Foundry.FileSearchMatch:file

No description available.

###### Foundry.FileSearchMatch:icon

No description available.

###### Foundry.FileSearchMatch:length

No description available.

###### Foundry.FileSearchMatch:line

No description available.

###### Foundry.FileSearchMatch:line-offset

No description available.

###### Foundry.FileSearchMatch:text

No description available.

###### Foundry.FileSearchMatch:uri

No description available.

#### Signals

##### Signals inherited from GObject (1)

###### GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

#### Class structure

    struct FoundryFileSearchMatchClass {
      GObject parent_instance;
      GFile* (* dup_file) (
        FoundryFileSearchMatch* self
      );
      guint (* get_line) (
        FoundryFileSearchMatch* self
      );
      guint (* get_line_offset) (
        FoundryFileSearchMatch* self
      );
      guint (* get_length) (
        FoundryFileSearchMatch* self
      );
      char* (* dup_before_context) (
        FoundryFileSearchMatch* self
      );
      char* (* dup_text) (
        FoundryFileSearchMatch* self
      );
      char* (* dup_after_context) (
        FoundryFileSearchMatch* self
      );
      gpointer _reserved;

    }

No description available.

###### Class members

`parent_instance: GObject`

  No description available.

`dup_file: GFile* (* dup_file) ( FoundryFileSearchMatch* self )`

  No description available.

`get_line: guint (* get_line) ( FoundryFileSearchMatch* self )`

  No description available.

`get_line_offset: guint (* get_line_offset) ( FoundryFileSearchMatch* self )`

  No description available.

`get_length: guint (* get_length) ( FoundryFileSearchMatch* self )`

  No description available.

`dup_before_context: char* (* dup_before_context) ( FoundryFileSearchMatch* self )`

  No description available.

`dup_text: char* (* dup_text) ( FoundryFileSearchMatch* self )`

  No description available.

`dup_after_context: char* (* dup_after_context) ( FoundryFileSearchMatch* self )`

  No description available.

`_reserved: gpointer`

  No description available.

#### Virtual methods

###### Foundry.FileSearchMatchClass.dup_after_context

Gets the text after the search text.

since: 1.1

###### Foundry.FileSearchMatchClass.dup_before_context

Gets the text before the search text.

since: 1.1

###### Foundry.FileSearchMatchClass.dup_file

Gets a copy of the file associated with the search match.

since: 1.1

###### Foundry.FileSearchMatchClass.dup_text

Gets the matched text.

since: 1.1

###### Foundry.FileSearchMatchClass.get_length

Gets the length of the search text in characters.

since: 1.1

###### Foundry.FileSearchMatchClass.get_line

Gets the line number where the search match was found.

since: 1.1

###### Foundry.FileSearchMatchClass.get_line_offset

Gets the character offset within the line where the search match starts.

since: 1.1