Click here to Skip to main content
Click here to Skip to main content
Articles » Languages » C# » Windows Forms » Downloads
 
Add your own
alternative version

Non-transparent controls on a semi-transparent window

, 6 Jul 2006
The article describes the use and the principle of operation of semi-transparent controls with non-transparent child controls.
transparent_controls_demo.zip
TestSkinControl
App.ico
bin
Debug
KBSoft.Components.dll
TestSkinControl.exe
TestSkinControl.exe.manifest
TestSkinControl.csproj.user
transparent_controls_src.zip
Components
bin
components
common
components.csproj.user
skincomponents
///////////////////////////////////////////////////////////////////////////////
//
//  File:           RegionCollection.cs
// 
//  Facility:		The unit contains the RegionCollection class.
//
//  Abstract:       The collection class of the Region class objects.
//
//  Environment:    VC 7.1
//
//  Author:         KB_Soft Group Ltd.
//
///////////////////////////////////////////////////////////////////////////////

using System;
using System.Collections;
using System.Drawing;

namespace KBSoft.Components
{
	/// <summary>
	/// The collection class of regions.
	/// </summary>
	public class RegionCollection : DictionaryBase
	{

		#region Constructors

		/// <summary>
		/// Class constructor.
		/// </summary>
		public RegionCollection()
		{
		}

		#endregion

		#region Properties

		/// <summary>
		/// Class indexer.
		/// </summary>
		public Region this[ String key ]  
		{
			get  
			{
				return( (Region) Dictionary[key] );
			}
			set  
			{
				Dictionary[key] = value;
			}
		}

		/// <summary>
		/// the property returns the collection of all keys of the dictionary.
		/// </summary>
		public ICollection Keys  
		{
			get  
			{
				return( Dictionary.Keys );
			}
		}

		/// <summary>
		/// the property returns the collection of all the values of the dictionary.
		/// </summary>
		public ICollection Values  
		{
			get  
			{
				return( Dictionary.Values );
			}
		}

		#endregion

		#region Methods

		/// <summary>
		/// the function adds the value to the dictionary.
		/// </summary>
		/// <param name="key">����</param>
		/// <param name="value">��������</param>
		public void Add( String key, Region value )  
		{
			Dictionary.Add( key, value );
		}

		/// <summary>
		/// the function checks whether the dictionary contains the value with the specified key.
		/// </summary>
		/// <param name="key">the key that will be used in checking whether the value corresponds to it.</param>
		/// <returns>returns true if the dictionary contains the value with the specified key.</returns>
		public bool Contains( String key )  
		{
			return( Dictionary.Contains( key ) );
		}

		/// <summary>
		/// The function deletes the value corresponding to the key from the dictionary.
		/// </summary>
		/// <param name="key">����, ������� ����� �����</param>
		public void Remove( String key )  
		{
			Dictionary.Remove( key );
		}

		#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

About the Author

Alexandr Golovanov
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.

| Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 6 Jul 2006
Article Copyright 2006 by Alexandr Golovanov
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid