'Declaration Public Overloads Sub Add( _ ByVal region As WorksheetRegion _ )
public void Add( WorksheetRegion region )
Exception | Description |
---|---|
System.ArgumentNullException | Occurs when the region is null. |
System.ArgumentException | Occurs when the region is from a Worksheet other than the references collection. |
The region added to the collection must be from the same Worksheet as the collection.
If the region is already contained in the collection, or there is a region in the collection which fully contains the specified region, this call will have no effect on the collection.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2