<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="dispatch.xsl" ?>
<Object name="FileTypes" project="SuperEdi">

  <Title>FileTypes Object</Title>

  <Description>The FileTypes object represents a list of all 
    user-defined file types. It provides methods to enumerate 
    these file types, add new types and delete types.</Description>

  <Keywords>FileTypes, Count, Item</Keywords>

  <!-- Properties -->

  <Property name="Count" type="short" write="no">
  	<Description>Returns the number of currently defined file types.</Description>
  </Property>

  <!-- Methods -->

  <Method name="Add">
	<Description>Creates a new file type and adds it to the collection. 
	  Returns the file type that was created.</Description>
    <Syntax>newType = FileTypes.Add( name )</Syntax>
	<Parameter name="name" type="string">
	  <Description>The name of the new file type.</Description>
	</Parameter>
    <Return type="Document" xlink="yes"/>
  </Method>

  <Method name="Remove">
	<Description>Removes a file type from the collection.</Description>
    <Syntax>FileTypes.Remove( name )</Syntax>
	<Parameter name="name" type="string">
	  <Description>The name of the file type to be removed.</Description>
	</Parameter>
  </Method>

  <Method name="Item">
	<Description>Returns a file type object from the collection or 
	  returns null if the file type does not exist.
      The Item method is the default member.</Description>
    <Syntax>firstDoc = filetypes( 0 )</Syntax>
	<Parameter name="index" type="variant">
	  <Description>Indicates the file type name or the
	    ordered position within the collection.</Description>
	</Parameter>
	<Return type="FileType" xlink="yes"/>
  </Method>

</Object>
