コード例 #1
0
 /// <summary>
 ///     <para>
 ///       Adds the contents of another <see cref='.ViewContentCollection'/> to the end of the collection.
 ///    </para>
 /// </summary>
 /// <param name='value'>
 ///    A <see cref='.ViewContentCollection'/> containing the objects to add to the collection.
 /// </param>
 /// <returns>
 ///   <para>None.</para>
 /// </returns>
 /// <seealso cref='.ViewContentCollection.Add'/>
 public void AddRange(ViewContentCollection value)
 {
     for (int i = 0; (i < value.Count); i = (i + 1))
     {
         this.Add(value[i]);
     }
 }
コード例 #2
0
        public void CloseViews()
        {
            //first copy all the open views
            ViewContentCollection allViews = new ViewContentCollection(workbench.ViewContentCollection);

            foreach (IViewContent content in allViews)
            {
                content.CloseView(false);
            }
        }
コード例 #3
0
		public void CloseViews()
		{
			//first copy all the open views
			ViewContentCollection allViews = new ViewContentCollection(workbench.ViewContentCollection);
			
			foreach (IViewContent content in allViews) 
			{
				content.CloseView(false);
			}
			
		}
コード例 #4
0
 /// <summary>
 ///     <para>
 ///       Initializes a new instance of <see cref='.ViewContentCollection'/> based on another <see cref='.ViewContentCollection'/>.
 ///    </para>
 /// </summary>
 /// <param name='value'>
 ///       A <see cref='.ViewContentCollection'/> from which the contents are copied
 /// </param>
 public ViewContentCollection(ViewContentCollection value)
 {
     this.AddRange(value);
 }
コード例 #5
0
 public IViewContentEnumerator(ViewContentCollection mappings)
 {
     this.temp           = ((IEnumerable)(mappings));
     this.baseEnumerator = temp.GetEnumerator();
 }
コード例 #6
0
		/// <summary>
		///     <para>
		///       Initializes a new instance of <see cref='.ViewContentCollection'/> based on another <see cref='.ViewContentCollection'/>.
		///    </para>
		/// </summary>
		/// <param name='value'>
		///       A <see cref='.ViewContentCollection'/> from which the contents are copied
		/// </param>
		public ViewContentCollection(ViewContentCollection value) {
			this.AddRange(value);
		}
コード例 #7
0
			public IViewContentEnumerator(ViewContentCollection mappings) {
				this.temp = ((IEnumerable)(mappings));
				this.baseEnumerator = temp.GetEnumerator();
			}
コード例 #8
0
		/// <summary>
		///     <para>
		///       Adds the contents of another <see cref='.ViewContentCollection'/> to the end of the collection.
		///    </para>
		/// </summary>
		/// <param name='value'>
		///    A <see cref='.ViewContentCollection'/> containing the objects to add to the collection.
		/// </param>
		/// <returns>
		///   <para>None.</para>
		/// </returns>
		/// <seealso cref='.ViewContentCollection.Add'/>
		public void AddRange(ViewContentCollection value) {
			for (int i = 0; (i < value.Count); i = (i + 1)) {
				this.Add(value[i]);
			}
		}