Click here to Skip to main content
15,886,693 members
Articles / Multimedia / GDI+

Controls of an arbitrary shape

Rate me:
Please Sign up or sign in to vote.
3.25/5 (7 votes)
6 Jul 20064 min read 42.7K   1.4K   31  
The article describes the use and the principle of operation of control of an arbitrary shape.
///////////////////////////////////////////////////////////////////////////////
//
//  File:           Design.cs
//
//  Facility:		The unit contains the LabelCollection class.
//
//  Abstract:       The collection class of the LabelItem elements.
//
//  Environment:    VC 7.1
//
//  Author:         KB_Soft Group Ltd.
//
///////////////////////////////////////////////////////////////////////////////

using System;
using System.Collections;

namespace KBSoft.Components
{
	/// <summary>
	/// The class presenting the collection of text elements that are arranged	
	/// on SkinTooltip.
	/// </summary>
	public class LabelCollection : CollectionBase
	{
		#region Properties

		/// <summary>
		/// The class indexer.
		/// </summary>
		public LabelItem this[int index]
		{
			get{ return (LabelItem)List[index]; }
			set{ List[index] = value; }
		}

		#endregion

		#region Methods

		/// <summary>
		/// The method adding elements to the collection.
		/// </summary>
		/// <param name="item">������� ��� ����������.</param>
		/// <returns>returnes the index of the added element.</returns>
		public int Add( LabelItem item )
		{
			return List.Add( item );
		}

		/// <summary>
		/// The method deleting elements from the collection.
		/// </summary>
		/// <param name="item"> The element to be deleted. </param>
		public void Remove( LabelItem item )
		{
			List.Remove( item );
		}

		#endregion
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Russian Federation Russian Federation
Alexandr Golovanov is a .NET developer at KB_Soft Group, an offshore software development company located in Russia, Novosibirsk. Here he has worked
on various .NET projects.

Comments and Discussions