⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hotzonecollection.cs

📁 Magic Library 1.7,有说明文档
💻 CS
字号:
// *****************************************************************************
// 
//  (c) Crownwood Consulting Limited 2002 
//  All rights reserved. The software and associated documentation 
//  supplied hereunder are the proprietary information of Crownwood Consulting 
//	Limited, Haxey, North Lincolnshire, England and are supplied subject to 
//	licence terms.
// 
//  Magic Version 1.7 	www.dotnetmagic.com
// *****************************************************************************

using System;
using System.Drawing;
using Crownwood.Magic.Docking;
using Crownwood.Magic.Collections;

namespace Crownwood.Magic.Collections
{
    public class HotZoneCollection : CollectionWithEvents
    {
        public HotZone Add(HotZone value)
        {
            // Use base class to process actual collection operation
            base.List.Add(value as object);

            return value;
        }

        public void AddRange(HotZone[] values)
        {
            // Use existing method to add each array entry
            foreach(HotZone page in values)
                Add(page);
        }

        public void Remove(HotZone value)
        {
            // Use base class to process actual collection operation
            base.List.Remove(value as object);
        }

        public void Insert(int index, HotZone value)
        {
            // Use base class to process actual collection operation
            base.List.Insert(index, value as object);
        }

        public bool Contains(HotZone value)
        {
            // Use base class to process actual collection operation
            return base.List.Contains(value as object);
        }

        public HotZone this[int index]
        {
            // Use base class to process actual collection operation
            get { return (base.List[index] as HotZone); }
        }

        public int IndexOf(HotZone value)
        {
            // Find the 0 based index of the requested entry
            return base.List.IndexOf(value);
        }

        public HotZone Contains(Point pt)
        {
            foreach(HotZone hz in base.List)
            {
                if (hz.HotArea.Contains(pt))
                    return hz;
            }

            return null;
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -