/// <summary> /// Determines whether this ControlToPositionAssociation contains a specific value. /// </summary> /// <param name="value"> /// The Position value to locate in this ControlToPositionAssociation. /// </param> /// <returns> /// true if this ControlToPositionAssociation contains an element with the specified value; /// otherwise, false. /// </returns> public virtual bool ContainsValue(LinkedControlValue value) { foreach (LinkedControlValue item in this.Dictionary.Values) { if (item == value) { return(true); } } return(false); }
/// <summary> /// Adds an element with the specified key and value to this ControlToPositionAssociation. /// </summary> /// <param name="key"> /// The Control key of the element to add. /// </param> /// <param name="value"> /// The Position value of the element to add. /// </param> public virtual void Add(Control key, LinkedControlValue value) { this.Dictionary.Add(key, value); }
/// <summary> /// /// </summary> /// <param name="other"></param> /// <returns></returns> public bool Equals(LinkedControlValue other) { return(mPosition == other.mPosition && m_bUseCellBorder == other.m_bUseCellBorder && mScrollMode == other.mScrollMode); }