package body MSHTML.IHTMLElementCollection4_Object is

   function Get_length
     (This : IHTMLElementCollection4_Type)
     return GNATCOM.Types.VARIANT
   is
   begin
      return Get (This, IHTMLElementCollection4_Get_length);
   end Get_length;

   function item
     (This  : IHTMLElementCollection4_Type;
      index : GNATCOM.Types.VARIANT;
      Free  : Boolean := True)
     return GNATCOM.Types.VARIANT
   is
   begin
      return Invoke
        (This,
         IHTMLElementCollection4_item,
         GNATCOM.Dispinterface.Parameter_Array'
         (1 => index),
         Free);
   end item;

   function namedItem
     (This : IHTMLElementCollection4_Type;
      name : GNATCOM.Types.VARIANT;
      Free : Boolean := True)
     return GNATCOM.Types.VARIANT
   is
   begin
      return Invoke
        (This,
         IHTMLElementCollection4_namedItem,
         GNATCOM.Dispinterface.Parameter_Array'
         (1 => name),
         Free);
   end namedItem;

end MSHTML.IHTMLElementCollection4_Object;

