Spread for ASP.NET 9.0 Product Documentation
SetDirectAltRowInfo Method (ISheetStyleModel)
Example 


Index of the alternating row style to set; must be between 0 and AltRowCount-1
Style set (StyleInfo object)
Sets the specified alternating row style in the model.
Syntax
'Declaration
 
Sub SetDirectAltRowInfo( _
   ByVal index As Integer, _
   ByVal info As StyleInfo _
) 
'Usage
 
Dim instance As ISheetStyleModel
Dim index As Integer
Dim info As StyleInfo
 
instance.SetDirectAltRowInfo(index, info)
void SetDirectAltRowInfo( 
   int index,
   StyleInfo info
)

Parameters

index
Index of the alternating row style to set; must be between 0 and AltRowCount-1
info
Style set (StyleInfo object)
Example
FarPoint.Web.Spread.Model.ISheetStyleModel iss;
iss = (FarPoint.Web.Spread.Model.ISheetStyleModel)FpSpread1.ActiveSheetView.StyleModel;
iss.AltRowCount = 2;
Dim si As New FarPoint.Web.Spread.StyleInfo;
si.BackColor = Color.Yellow;
iss.SetDirectAltRowInfo(1, si);
FarPoint.Web.Spread.StyleInfo ret = iss.GetDirectAltRowInfo(1, null);
string msg = "The background color of the style is " + si.BackColor.ToString();
Response.Write("<script language='javascript'>alert('" + msg + "')</script>");
Dim iss As FarPoint.Web.Spread.Model.ISheetStyleModel
iss = FpSpread1.ActiveSheetView.StyleModel
iss.AltRowCount = 2
Dim si As New FarPoint.Web.Spread.StyleInfo
si.BackColor = Color.Yellow
iss.SetDirectAltRowInfo(1, si)
Dim ret As FarPoint.Web.Spread.StyleInfo = iss.GetDirectAltRowInfo(1, Nothing)
Dim msg As String = "The background color of the style is " + si.BackColor.ToString()
Response.Write("<script language='javascript'>alert('" & msg & "')</script>")
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

ISheetStyleModel Interface
ISheetStyleModel Members

 

 


Copyright © GrapeCity, inc. All rights reserved.