Hide Table of Contents
GetCellRange Method (ITableAnnotation)

Gets the specified range of cells.

.NET Syntax

Visual Basic (Declaration) 
Sub GetCellRange( _
   ByRef FirstRow As System.Integer, _
   ByRef LastRow As System.Integer, _
   ByRef FirstColumn As System.Integer, _
   ByRef LastColumn As System.Integer _
) 
Visual Basic (Usage) 
Dim instance As ITableAnnotation
Dim FirstRow As System.Integer
Dim LastRow As System.Integer
Dim FirstColumn As System.Integer
Dim LastColumn As System.Integer
 
instance.GetCellRange(FirstRow, LastRow, FirstColumn, LastColumn)
C# 
void GetCellRange( 
   out System.int FirstRow,
   out System.int LastRow,
   out System.int FirstColumn,
   out System.int LastColumn
)
C++/CLI 
void GetCellRange( 
&   [Out] System.int FirstRow,
&   [Out] System.int LastRow,
&   [Out] System.int FirstColumn,
&   [Out] System.int LastColumn
) 

Parameters

FirstRow
Index of the first row
LastRow
Index of last row
FirstColumn
Index of first column
LastColumn
Index of last column

Example

Remarks

The index for both the rows and columns is 0-based.

How you select table cells affects what is returned.

Selection Steps Cell range returned

Table cell

  1. Place the cursor on the desired table cell.
  2. Click the left-mouse button.
Selected cell

  1. Hold down the Ctrl key and place the cursor on the desired table cell.
  2. Click the left-mouse button.
Selected cell

Multiple table cells

  1. Place the cursor on a desired table cell.
  2. Click and hold down the left-mouse button.
  3. Drag the cursor over the other desired table cells.
  4. Release the left-mouse button when the cursor is on the last table cell that you want selected.
All selected cells

  1. Hold down the Ctrl key and place the cursor on a desired table cell.
  2. Click the left-mouse button.
  3. Repeat steps 1 and 2 until all desired table cells are selected.
Each selected cell
Table column Place the cursor just above the desired column and click the left-mouse button when the cursor changes to a solid arrow All selected cells
Table row Place the cursor to just left of the desired row and click the left-mouse button when the cursor changes to a solid arrow All selected cells

 Run any of the examples in the Example section to better understand the values returned by this method.

 

See Also

Availability

SolidWorks 2004 FCS, Revision Number 12.0


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   GetCellRange Method (ITableAnnotation)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2013 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.