Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

Creates a Range of cells from an array of Areas. A Range is a collection of Area s; an Area area is a rectangular collection of cells.

Signature
C#C#
Wiki Markup
{description}
{excerpt}Creates a [Range|Range] of cells from an array of Areas. A {{Range}} is a collection of [Area|Area] s; an {{Area}} area is a rectangular collection of cells.{excerpt}
{signature:C#}
 public Range CreateRange(Area[] rangeAreas)
Signature
{signature}{signature:vb.net
vb.net
}
Public Function CreateRange(ByVal rangeAreas As Area()) As Range
Parameters

...

Array or Areas representing the range.

Returns

A Range object representing the range of cells created.

{signature}
{parameters}
{param:rangeAreas}Array or Areas representing the range.{param}
{returns}A {{Range}} object representing the range of cells created.{returns}
{example}{code:csharp|title=C#}

          Range rng = wb.CreateRange(
               new Area[]{
               worksheet1.CreateArea(2, 4, 2, 5),
               worksheet2.CreateArea(2, 4, 2, 5)});
        
{code}
{code:vb.net
|title=vb.net
}

          Dim rng As Range = wb.CreateRange( _
               New Area(){ _
               worksheet1.CreateArea(2, 4, 2, 5), _
               worksheet2.CreateArea(2, 4, 2, 5)})
        {code}

{example}
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle