Spread for ASP.NET 12 Product Documentation
SetDirectName Method (DefaultSheetStyleModel)


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace > DefaultSheetStyleModel Class : SetDirectName Method
Model row index of the cell, or -1 to specify a column or model default
Model column index of the cell, or -1 to specify a row or model default
Name of the style to set
Sets the name of the direct style for the specified cell, column, row, or model default to the specified style name.
Syntax
'Declaration
 
Public Overridable Sub SetDirectName( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal styleName As String _
) 
'Usage
 
Dim instance As DefaultSheetStyleModel
Dim row As Integer
Dim column As Integer
Dim styleName As String
 
instance.SetDirectName(row, column, styleName)
public virtual void SetDirectName( 
   int row,
   int column,
   string styleName
)

Parameters

row
Model row index of the cell, or -1 to specify a column or model default
column
Model column index of the cell, or -1 to specify a row or model default
styleName
Name of the style to set
Exceptions
ExceptionDescription
Specified row index is not valid; must be between -1 and the total number of rows
Specified column index is not valid; must be between -1 and the total number of columns
See Also

Reference

DefaultSheetStyleModel Class
DefaultSheetStyleModel Members