SetDefaultStyle

<< Click to Display Table of Contents >>

Manual > Control Reference > Basics > Grid control > Methods >

SetDefaultStyle


 

Sets the default cell style when a cell is added.

 


Syntax 1

SetDefaultStyle(

         "row",

         styleNames

         [,row]

         )

 


Parameters

 

areaType


Type:

character


"row"

 

styleNames


Type:

Character Array


A one-dimensional array of style names. Specify the number of elements as many as the number of rows you want to specify. You can add multiple styles by separating the style names with commas.

 

row


Type:

Number


Index of the starting row (column number starting from 0).

 

Return Value

none

 


hmtoggle_plus1Explanation

 

 


Syntax 2

SetDefaultStyle(

         "col",

         styleNames

         [,col]

         )

 


Parameters

 

areaType


Type:

character


"col"

 

styleNames


Type:

Character Array


A one-dimensional array of style names. Specify the number of elements as many as the number of columns you want to specify. You can add multiple styles by separating the style names with commas.

 

col


Type:

Number


The starting column index (0-based).

 

Return Value

none

 


hmtoggle_plus1Explanation

 

 


Syntax 3

SetDefaultStyle(

         "all",

         styleName

         )

 


Parameters

 

areaType


Type:

character


"all"

 

styleName


Type:

character


The style name.

 

Return Value

none

 


hmtoggle_plus1Explanation

 

 


reference

 

AddStyle