FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace > BaseSheetStyleModel Class : SetDirectAltRowInfo Method |
'Declaration Public Overridable Sub SetDirectAltRowInfo( _ ByVal index As Integer, _ ByVal info As StyleInfo _ )
'Usage Dim instance As BaseSheetStyleModel Dim index As Integer Dim info As StyleInfo instance.SetDirectAltRowInfo(index, info)
Spread uses the alternating row style to merge alternating row styles with the composite style for a cell immediately prior to painting the cell.
This implementation does nothing and returns null.
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());
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())
Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional