GrapeCity MultiRow Windows Forms Documentation
GetContentBounds Method


Index of the parent row.
Retrieves the cell's content boundary in the specified Row.
Syntax
Public Function GetContentBounds( _
   ByVal rowIndex As Integer _
) As Rectangle
Dim instance As Cell
Dim rowIndex As Integer
Dim value As Rectangle
 
value = instance.GetContentBounds(rowIndex)
public Rectangle GetContentBounds( 
   int rowIndex
)

Parameters

rowIndex
Index of the parent row.

Return Value

A System.Drawing.Rectangle value that represents a rectangular area that is used to show the content of this cell.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptionWhen GcMultiRow is not a null reference (Nothing in Visual Basic) and the rowIndex parameter is greater than the parent section's count or less than 0.
Remarks
Generally, each cell's content area is the minimum size that contains the cell's DisplayText, CellStyle.Image, and ErrorIcon. CellStyle.Padding and CellStyle.Border are not included. Some special cell types have DropDownButton, SideButton, FlatAppearance border, and so on. These visual elements are also contained in the content boundary.
Requirements

Target Platforms: 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

See Also

Reference

Cell Class
Cell Members

 

 


Copyright © GrapeCity, inc. All rights reserved.