System.Windows.Forms.Control.ControlCollection.ContainsKey(string)

Here are the examples of the csharp api class System.Windows.Forms.Control.ControlCollection.ContainsKey(string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

Project: JexusManager
Source File: BreadcrumbBar.cs
View license
public override bool ContainsKey ( string key ) {
				return Owner.Controls.ContainsKey ( key );
			}

2. Example

View license
private void AddSet(string key, string value)
        {
            if (Controls.ContainsKey("L" + key.Replace("!", "")))
            {
                return;
            }
            Label label = new Label
            {
                Location = new Point(10, p.Controls[p.Controls.Count - 2].Location.Y + 15),
                Name = "L" + key.Replace("!", ""),
                Text = key,
                Size = new Size(90, 13)
            };
            p.Controls.Add(label);
            Label label2 = new Label
            {
                Location = new Point(105, p.Controls[p.Controls.Count - 1].Location.Y),
                Name = "T" + key.Replace("!", ""),
                Text = value,
                Size = new Size(480, 13)
            };
            p.Controls.Add(label2);
            AddSeparator(p.Controls[p.Controls.Count - 1].Location.Y + 13);
            
            _numberOfElements++;
        }