GrapeCity MultiRow Windows Forms Documentation
CreateGridTemplateForColumnMode(Int32,Int32,Int32,Int32) Method


A System.Int32 that indicates the row count.
A System.Int32 that indicates the cell's width in the Row section.
A System.Int32 that indicates the cell's height in the Row section.
A System.Int32 that indicates the maximum row height.
Creates a standard left-to-right layout matrix Template with the specified column count, cell size, and maximum row height.
Syntax
Public Overloads Shared Function CreateGridTemplateForColumnMode( _
   ByVal rowCount As Integer, _
   ByVal cellWidth As Integer, _
   ByVal cellHeight As Integer, _
   ByVal rowsMaxHeight As Integer _
) As Template
Dim rowCount As Integer
Dim cellWidth As Integer
Dim cellHeight As Integer
Dim rowsMaxHeight As Integer
Dim value As Template
 
value = Template.CreateGridTemplateForColumnMode(rowCount, cellWidth, cellHeight, rowsMaxHeight)
public static Template CreateGridTemplateForColumnMode( 
   int rowCount,
   int cellWidth,
   int cellHeight,
   int rowsMaxHeight
)

Parameters

rowCount
A System.Int32 that indicates the row count.
cellWidth
A System.Int32 that indicates the cell's width in the Row section.
cellHeight
A System.Int32 that indicates the cell's height in the Row section.
rowsMaxHeight
A System.Int32 that indicates the maximum row height.

Return Value

A Template that represents a standard left-to-right layout matrix Template.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeException

The rowCount is less than or equal to 0.

-or-

The cellWidth is less than or equal to 0.

-or-

The cellHeight is less than or equal to 0.

-or-

The rowsMaxHeight is less than or equal to 0.

Remarks
You can specity the maximum column width using the CreateGridTemplateForColumnMode(Int32,Int32,Int32) method. If the sum of all rows' height is greater than the rowsMaxHeight, the cells which cannot be put in the first line are moved to the next line.
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

Template Class
Template Members
Overload List
CreateGridTemplateForColumnMode(Int32) Method
CreateGridTemplateForColumnMode(Int32,Int32,Int32) Method
CreateGridTemplateForColumnMode(Int32,Int32,Int32,Int32,AutoGenerateGridTemplateStyles) Method
CreateGridTemplateForColumnMode(Int32,Int32,Int32,Int32,AutoGenerateGridTemplateStyles,Int32) Method
CreateGridTemplateForColumnMode(IEnumerable<Cell>) Method
CreateGridTemplateForColumnMode(IEnumerable<Cell>,Int32) Method
CreateGridTemplateForColumnMode(IEnumerable<Cell>,Int32,AutoGenerateGridTemplateStyles) Method
CreateGridTemplateForColumnMode(IEnumerable<Cell>,Int32,AutoGenerateGridTemplateStyles,Int32) Method

 

 


Copyright © GrapeCity, inc. All rights reserved.