Gets the style information for the specified alternating row in the model.
Syntax
Parameters
- index
- Index of the alternating row style to get; must be between 0 and AltRowCount-1
- destInfo
- Destination StyleInfo object for composing the styles; if null, then a new StyleInfo should be created and used
Return Value
This implementation does nothing and returns null.
Remarks
Example
This example sets the background color for the alternating rows for the style.
C# | Copy Code |
---|
FarPoint.Web.Spread.Model.BaseSheetStyleModel bs;
bs = (FarPoint.Web.Spread.Model.BaseSheetStyleModel)FpSpread1.ActiveSheetView.StyleModel;
FarPoint.Web.Spread.StyleInfo si = new FarPoint.Web.Spread.StyleInfo();
si.BackColor = Color.Yellow;
bs.SetDirectAltRowInfo(0, si);
si = bs.GetDirectAltRowInfo(0, si);
Response.Write(si.BackColor.ToString());
|
Visual Basic | Copy Code |
---|
Dim bs As FarPoint.Web.Spread.Model.BaseSheetStyleModel
bs = FpSpread1.ActiveSheetView.StyleModel
Dim si As New FarPoint.Web.Spread.StyleInfo
si.BackColor = Color.Yellow
bs.SetDirectAltRowInfo(0, si)
si = bs.GetDirectAltRowInfo(0, si)
Response.Write(si.BackColor.ToString()) |
Requirements
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6
See Also