GrapeCity MultiRow Windows Forms Documentation
CreateGridTemplateForColumnMode(IEnumerable<Cell>,Int32) Method


A Cell collection that is filled to the standard left-to-right layout matrix template.
A System.Int32 that indicates the maximum rows height.
Creates a standard left-to-right layout matrix Template with the specified cells.
Syntax
Public Overloads Shared Function CreateGridTemplateForColumnMode( _
   ByVal cells As IEnumerable(Of Cell), _
   ByVal rowsMaxHeight As Integer _
) As Template
Dim cells As IEnumerable(Of Cell)
Dim rowsMaxHeight As Integer
Dim value As Template
 
value = Template.CreateGridTemplateForColumnMode(cells, rowsMaxHeight)
public static Template CreateGridTemplateForColumnMode( 
   IEnumerable<Cell> cells,
   int rowsMaxHeight
)

Parameters

cells
A Cell collection that is filled to the standard left-to-right layout matrix template.
rowsMaxHeight
A System.Int32 that indicates the maximum rows height.

Return Value

A Template that represents a standard left-to-right layout matrix Template.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThe cells is a null reference (Nothing in Visual Basic).
System.ArgumentOutOfRangeExceptionThe rowsMaxHeight is less than or equal to 0.
System.ArgumentException

There exists one cell in cells that is a null reference (Nothing in Visual Basic).

-or-

There exists one cell in cells that has been added to another Section or Template.

-or-

No cell exists in cells.

System.InvalidOperationExceptionThere exists one cell in cells that cannot be added in the Row section.
Remarks
When using CreateGridTemplateForColumnMode(IEnumerable<Cell>) once the sum of all ranged cell's height is greater than 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) Method
CreateGridTemplateForColumnMode(Int32,Int32,Int32,Int32,AutoGenerateGridTemplateStyles) Method
CreateGridTemplateForColumnMode(Int32,Int32,Int32,Int32,AutoGenerateGridTemplateStyles,Int32) Method
CreateGridTemplateForColumnMode(IEnumerable<Cell>) Method
CreateGridTemplateForColumnMode(IEnumerable<Cell>,Int32,AutoGenerateGridTemplateStyles) Method
CreateGridTemplateForColumnMode(IEnumerable<Cell>,Int32,AutoGenerateGridTemplateStyles,Int32) Method

 

 


Copyright © GrapeCity, inc. All rights reserved.