File: winforms\Managed\System\WinForms\InputLanguageCollection.cs
Project: ndp\fx\src\System.Windows.Forms.csproj (System.Windows.Forms)
// ------------------------------------------------------------------------------
// <copyright file="InputLanguageCollection.cs" company="Microsoft">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright> 
// ------------------------------------------------------------------------------
// 
namespace System.Windows.Forms {
    using System;
    using System.Collections;
    
    
    /// <include file='doc\InputLanguageCollection.uex' path='docs/doc[@for="InputLanguageCollection"]/*' />
    /// <devdoc>
    ///     <para>
    ///       A collection that stores <see cref='System.Windows.Forms.InputLanguage'/> objects.
    ///    </para>
    /// </devdoc>
    public class InputLanguageCollection : ReadOnlyCollectionBase {
        
        /// <include file='doc\InputLanguageCollection.uex' path='docs/doc[@for="InputLanguageCollection.InputLanguageCollection"]/*' />
        /// <devdoc>
        ///     <para>
        ///       Initializes a new instance of <see cref='System.Windows.Forms.InputLanguageCollection'/> containing any array of <see cref='System.Windows.Forms.InputLanguage'/> objects.
        ///    </para>
        /// </devdoc>
        internal InputLanguageCollection(InputLanguage[] value) {
            InnerList.AddRange(value);
        }
        
        /// <include file='doc\InputLanguageCollection.uex' path='docs/doc[@for="InputLanguageCollection.this"]/*' />
        /// <devdoc>
        /// <para>Represents the entry at the specified index of the <see cref='System.Windows.Forms.InputLanguage'/>.</para>
        /// </devdoc>
        public InputLanguage this[int index] {
            get {
                return ((InputLanguage)(InnerList[index]));
            }
        }
        
        /// <include file='doc\InputLanguageCollection.uex' path='docs/doc[@for="InputLanguageCollection.Contains"]/*' />
        /// <devdoc>
        /// <para>Gets a value indicating whether the 
        ///    <see cref='System.Windows.Forms.InputLanguageCollection'/> contains the specified <see cref='System.Windows.Forms.InputLanguage'/>.</para>
        /// </devdoc>
        public bool Contains(InputLanguage value) {
            return InnerList.Contains(value);
        }
        
        /// <include file='doc\InputLanguageCollection.uex' path='docs/doc[@for="InputLanguageCollection.CopyTo"]/*' />
        /// <devdoc>
        /// <para>Copies the <see cref='System.Windows.Forms.InputLanguageCollection'/> values to a one-dimensional <see cref='System.Array'/> instance at the 
        ///    specified index.</para>
        /// </devdoc>
        public void CopyTo(InputLanguage[] array, int index) {
            InnerList.CopyTo(array, index);
        }
        
        /// <include file='doc\InputLanguageCollection.uex' path='docs/doc[@for="InputLanguageCollection.IndexOf"]/*' />
        /// <devdoc>
        ///    <para>Returns the index of a <see cref='System.Windows.Forms.InputLanguage'/> in 
        ///       the <see cref='System.Windows.Forms.InputLanguageCollection'/> .</para>
        /// </devdoc>
        public int IndexOf(InputLanguage value) {
            return InnerList.IndexOf(value);
        }
    }
}