ICalGLib.Component.get_first_component

### Method

# ICalGLib Componentget_first_component

since: 1.0

#### Declaration [src]

    ICalComponent*
    i_cal_component_get_first_component (
      ICalComponent* component,
      ICalComponentKind kind
    )

#### Description [src]

Gets the first `ICalComponent` with specific kind in `ICalComponent`.

Available since: 1.0

#### Parameters

`kind`

  Type: `ICalComponentKind`

  A `ICalComponentKind`.

#### Return value

Type: `ICalComponent`

The first `ICalComponent`.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
The return value can be `NULL`.