SourceGrid.RangeRegion.Add C# (CSharp) Method

Add() public method

Add the specified cell and add the cell to the collection.
public Add ( Position pCell ) : bool
pCell Position
return bool
        public bool Add(Position pCell)
        {
            return Add(new Range(pCell));
        }

Same methods

RangeRegion::Add ( Range pRange ) : bool
RangeRegion::Add ( RangeRegion pRange ) : bool

Usage Example

Exemplo n.º 1
0
        /// <summary>
        /// Returns a range with the smaller Start and the bigger End. The Union of the 2 Range. If one of the range is empty then the return is the other range.
        /// </summary>
        /// <param name="p_Range1"></param>
        /// <param name="p_Range2"></param>
        /// <returns></returns>
        public static RangeRegion Union(Range p_Range1, Range p_Range2)
        {
            RangeRegion range = new RangeRegion();

            range.Add(p_Range1);
            range.Add(p_Range2);
            return(range);
        }
All Usage Examples Of SourceGrid.RangeRegion::Add