|
///////////////////////////////////////////////////////////////////////////////
//
// 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.
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
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.