package body MSHTML.IHTMLCSSMediaList_Object is

   procedure Put_mediaText
     (This : IHTMLCSSMediaList_Type;
      P1   : GNATCOM.Types.VARIANT;
      Free : Boolean := True)
   is
   begin
      Put
        (This,
         IHTMLCSSMediaList_Put_mediaText,
         GNATCOM.Dispinterface.Parameter_Array'
         (1 => P1),
         Free);
   end Put_mediaText;

   function Get_mediaText
     (This : IHTMLCSSMediaList_Type)
     return GNATCOM.Types.VARIANT
   is
   begin
      return Get (This, IHTMLCSSMediaList_Get_mediaText);
   end Get_mediaText;

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

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

   procedure appendMedium
     (This       : IHTMLCSSMediaList_Type;
      bstrMedium : GNATCOM.Types.VARIANT;
      Free       : Boolean := True)
   is
   begin
      Invoke
        (This,
         IHTMLCSSMediaList_appendMedium,
         GNATCOM.Dispinterface.Parameter_Array'
         (1 => bstrMedium),
         Free);
   end appendMedium;

   procedure deleteMedium
     (This       : IHTMLCSSMediaList_Type;
      bstrMedium : GNATCOM.Types.VARIANT;
      Free       : Boolean := True)
   is
   begin
      Invoke
        (This,
         IHTMLCSSMediaList_deleteMedium,
         GNATCOM.Dispinterface.Parameter_Array'
         (1 => bstrMedium),
         Free);
   end deleteMedium;

end MSHTML.IHTMLCSSMediaList_Object;

